~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to src/rigs/TT550.cxx

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-10-25 11:17:10 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141025111710-n32skgya3l9u1brw
Tags: 1.3.17-1
* New upstream release (Closes: #761839)
* Debian Standards-Version: 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
static const int TT550_steps[] = { 1, 10, 100, 1000, 10000 };
76
76
 
77
 
static char TT550restart[]              = "XX\r";
 
77
static char TT550restart[]                      = "XX\r";
78
78
static char TT550init[]                 = "P1\r";
79
 
//static char TT550isRADIO[]    = " RADIO START";
80
 
//static char TT550isDSP[]              = " DSP START";
 
79
//static char TT550isRADIO[]            = " RADIO START";
 
80
//static char TT550isDSP[]                      = " DSP START";
81
81
 
82
82
//static char TT550setFREQ[]            = "N123456\r";
83
83
 
84
 
static char TT550setMODE[]              = "Mnn\r";
 
84
static char TT550setMODE[]                      = "Mnn\r";
85
85
static char TT550setRcvBW[]             = "Wx\r";
86
86
static char TT550setXmtBW[]             = "Cx\r";
87
 
static char TT550setVolume[]    = "Vn\r";
88
 
static char TT550setAGC[]               = "Gc\r";
89
 
static char TT550setRFGAIN[]    = "An\r";
90
 
static char TT550setATT[]               = "Bc\r";
 
87
static char TT550setVolume[]            = "Vn\r";
 
88
static char TT550setAGC[]                       = "Gc\r";
 
89
static char TT550setRFGAIN[]            = "An\r";
 
90
static char TT550setATT[]                       = "Bc\r";
91
91
static char TT550setCWWPM[]             = "Eabcdef\r";
92
 
static char TT550setMONVOL[]    = "Hn\r";
93
 
static char TT550setCWMONVOL[]  = "Jn\r";
94
 
static char TT550setNRNOTCH[]   = "Kna\r";
95
 
static char TT550setLINEOUT[]   = "Ln\r"; // 63 - min, 0 - max
96
 
static char TT550setMICLINE[]   = "O1cn\r"; // *******************************************
 
92
static char TT550setMONVOL[]            = "Hn\r";
 
93
static char TT550setCWMONVOL[]          = "Jn\r";
 
94
static char TT550setNRNOTCH[]           = "Kna\r";
 
95
static char TT550setLINEOUT[]           = "Ln\r"; // 63 - min, 0 - max
 
96
static char TT550setMICLINE[]           = "O1cn\r"; // *******************************************
97
97
static char TT550setPOWER[]             = "Pn\r"; // ****************************************
98
 
static char TT550setXMT[]               = "Q1\r";
99
 
static char TT550setRCV[]               = "Q0\r";
100
 
static char TT550setSQUELCH[]   = "Sn\r";       // 0..19; 6db / unit
101
 
static char TT550setVOX[]               = "Uc\r";       // '0' = off; '1' = on
102
 
static char TT550setVOXGAIN[]   = "UGn\r";      // 0 <= n <= 255
103
 
static char TT550setANTIVOX[]   = "UAn\r";      // 0..255
104
 
static char TT550setVOXHANG[]   = "UHn\r";      // 0..255; n= delay*0.0214 sec
 
98
static char TT550setXMT[]                       = "Q1\r";
 
99
static char TT550setRCV[]                       = "Q0\r";
 
100
static char TT550setSQUELCH[]           = "Sn\r";       // 0..19; 6db / unit
 
101
static char TT550setVOX[]                       = "Uc\r";       // '0' = off; '1' = on
 
102
static char TT550setVOXGAIN[]           = "UGn\r";      // 0 <= n <= 255
 
103
static char TT550setANTIVOX[]           = "UAn\r";      // 0..255
 
104
static char TT550setVOXHANG[]           = "UHn\r";      // 0..255; n= delay*0.0214 sec
105
105
static char TT550setCWSPOTLVL[] = "Fn\r";       // 0..255; 0 = off
106
106
static char TT550setCWQSK[]             = "UQn\r";      // 0..255; 0 = none
107
 
static char TT550setAUXHANG[]   = "UTn\r";      // 0..255; 0 = none
108
 
static char TT550setBLANKER[]   = "Dn\r";       // 0..7; 0 = off
109
 
static char TT550setSPEECH[]    = "Yn\r";       // 0..127; 0 = off
 
107
static char TT550setAUXHANG[]           = "UTn\r";      // 0..255; 0 = none
 
108
static char TT550setBLANKER[]           = "Dn\r";       // 0..7; 0 = off
 
109
static char TT550setSPEECH[]            = "Yn\r";       // 0..127; 0 = off
110
110
 
111
 
static char TT550setDISABLE[]   = "#0\r";       // disable transmitter
112
 
static char TT550setENABLE[]    = "#1\r";       // enable transmitter
 
111
static char TT550setDISABLE[]           = "#0\r";       // disable transmitter
 
112
static char TT550setENABLE[]            = "#1\r";       // enable transmitter
113
113
static char TT550setTLOOP_OFF[] = "#2\r";       // disable T loop
114
 
static char TT550setTLOOP_ON[]  = "#3\r";       // enable T loop
 
114
static char TT550setTLOOP_ON[]          = "#3\r";       // enable T loop
115
115
static char TT550setKEYER_OFF[] = "#6\r";       // enable keyer
116
 
static char TT550setKEYER_ON[]  = "#7\r";       // disable keyer
 
116
static char TT550setKEYER_ON[]          = "#7\r";       // disable keyer
117
117
static char TT550setALIVE_OFF[] = "#8\r";       // disable keep alive
118
118
//static char TT550setALIVE_ON[]        = "#9\r";       // enable keep alive
119
119
 
120
 
//static char TT550getAGC[]             = "?Y\r";       // 0..255
121
 
//static char TT550getFWDPWR[]  = "?F\r";       // F<0..255>
122
 
//static char TT550getREFPWR[]  = "?R\r";       // R<0..255>
 
120
//static char TT550getAGC[]                     = "?Y\r";       // 0..255
 
121
//static char TT550getFWDPWR[]          = "?F\r";       // F<0..255>
 
122
//static char TT550getREFPWR[]          = "?R\r";       // R<0..255>
123
123
static char TT550getSIG_LEVEL[] = "?S\r";       // S<0..255><0..255>
124
 
static char TT550getFWDREF[]    = "?S\r";       // T<0..255><0..255>
 
124
static char TT550getFWDREF[]            = "?S\r";       // T<0..255><0..255>
125
125
 
126
126
static char TT550setAMCARRIER[] = "R \r";       // enables AM mode transmit
127
127
 
179
179
        has_smeter =
180
180
        has_power_out =
181
181
        has_split =
 
182
        has_split_AB =
182
183
        has_swr_control = 
183
184
        has_micgain_control =
184
185
        has_power_control =
465
466
 
466
467
void RIG_TT550::set_split(bool val)
467
468
{
 
469
printf("set split %s\n", val ? "ON" : "OFF");
468
470
        split = val;
469
 
        selectA();
470
 
        if (split)
471
 
                set_vfoTX(freqB);
 
471
//      selectA();
 
472
        if (split) {
 
473
                if (onA)
 
474
                        set_vfoTX(freqB);
 
475
                else
 
476
                        set_vfoTX(freqA);
 
477
        } else {
 
478
                if (onA)
 
479
                        set_vfoTX(freqA);
 
480
                else
 
481
                        set_vfoTX(freqB);
 
482
        }
472
483
}
473
484
 
474
485
void RIG_TT550::set_vfo(long freq)
789
800
//      LOG_WARN("%s", tt550_fkey_strings[2]);
790
801
        if (progStatus.tt550_cw_wpm >= 80) return;
791
802
        progStatus.tt550_cw_wpm++;
792
 
        cnt_tt550_cw_wpm->value(progStatus.tt550_cw_wpm);
793
 
        cnt_tt550_cw_wpm->redraw();
 
803
        spnr_tt550_cw_wpm->value(progStatus.tt550_cw_wpm);
 
804
        spnr_tt550_cw_wpm->redraw();
794
805
        selrig->set_cw_wpm();
795
806
}
796
807
 
799
810
//      LOG_WARN("%s", tt550_fkey_strings[3]);set_bw
800
811
        if (progStatus.tt550_cw_wpm <= 5) return;
801
812
        progStatus.tt550_cw_wpm--;
802
 
        cnt_tt550_cw_wpm->value(progStatus.tt550_cw_wpm);
803
 
        cnt_tt550_cw_wpm->redraw();
 
813
        spnr_tt550_cw_wpm->value(progStatus.tt550_cw_wpm);
 
814
        spnr_tt550_cw_wpm->redraw();
804
815
        selrig->set_cw_wpm();
805
816
}
806
817