* add user configurable msec delay before releasing PTT
pull/1/head
David Freese 2011-12-24 09:14:29 -06:00
rodzic 8373e4b963
commit faff489972
5 zmienionych plików z 238 dodań i 161 usunięć

Wyświetl plik

@ -1939,6 +1939,27 @@ Fl_Group *tabRig=(Fl_Group *)0;
Fl_Tabs *tabsRig=(Fl_Tabs *)0;
Fl_Check_Button *btnPTTrightchannel=(Fl_Check_Button *)0;
static void cb_btnPTTrightchannel(Fl_Check_Button* o, void*) {
progdefaults.PTTrightchannel = o->value();
btnPTTrightchannel2->value(o->value());
if (o->value()) {
progdefaults.QSK = false;
btnQSK->value(0);
progdefaults.PseudoFSK = false;
chkPseudoFSK->value(0);
progdefaults.sig_on_right_channel = false;
chkAudioStereoOut->value(0);
if (progdefaults.mono_audio) {
progdefaults.mono_audio = false;
chkForceMono->value(0);
resetSoundCard();
}
}
progdefaults.changed = true;
}
Fl_Group *grpHWPTT=(Fl_Group *)0;
Fl_Input_Choice *inpTTYdev=(Fl_Input_Choice *)0;
@ -2031,24 +2052,19 @@ btnInitHWPTT->redraw();
progdefaults.changed = true;
}
Fl_Check_Button *btnPTTrightchannel=(Fl_Check_Button *)0;
Fl_Group *grpPTTdelays=(Fl_Group *)0;
static void cb_btnPTTrightchannel(Fl_Check_Button* o, void*) {
progdefaults.PTTrightchannel = o->value();
btnPTTrightchannel2->value(o->value());
if (o->value()) {
progdefaults.QSK = false;
btnQSK->value(0);
progdefaults.PseudoFSK = false;
chkPseudoFSK->value(0);
progdefaults.sig_on_right_channel = false;
chkAudioStereoOut->value(0);
if (progdefaults.mono_audio) {
progdefaults.mono_audio = false;
chkForceMono->value(0);
resetSoundCard();
}
Fl_Counter *cntPTT_on_delay=(Fl_Counter *)0;
static void cb_cntPTT_on_delay(Fl_Counter* o, void*) {
progdefaults.PTT_on_delay = o->value();
progdefaults.changed = true;
}
Fl_Counter *cntPTT_off_delay=(Fl_Counter *)0;
static void cb_cntPTT_off_delay(Fl_Counter* o, void*) {
progdefaults.PTT_off_delay = o->value();
progdefaults.changed = true;
}
@ -3365,7 +3381,7 @@ static const char szProsigns[] = "~|%|&|+|=|{|}|<|>|[|]| ";
o->selection_color((Fl_Color)51);
o->labelsize(18);
o->align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE);
{ tabsConfigure = new Fl_Tabs(-4, 0, 544, 372);
{ tabsConfigure = new Fl_Tabs(-5, 0, 545, 372);
tabsConfigure->color((Fl_Color)FL_LIGHT1);
tabsConfigure->selection_color((Fl_Color)FL_LIGHT1);
{ tabOperator = new Fl_Group(0, 25, 500, 345, _("Operator"));
@ -4428,9 +4444,9 @@ an merging"));
} // Fl_Tabs* tabsWaterfall
tabWaterfall->end();
} // Fl_Group* tabWaterfall
{ tabModems = new Fl_Group(-4, 25, 544, 347, _("Modems"));
{ tabModems = new Fl_Group(-5, 25, 545, 347, _("Modems"));
tabModems->hide();
{ tabsModems = new Fl_Tabs(-4, 25, 521, 347);
{ tabsModems = new Fl_Tabs(-5, 25, 545, 347);
tabsModems->selection_color((Fl_Color)FL_LIGHT1);
tabsModems->align(FL_ALIGN_TOP_RIGHT);
{ tabContestia = new Fl_Group(0, 50, 500, 320, _("Contestia"));
@ -5755,57 +5771,9 @@ an merging"));
{ tabsRig = new Fl_Tabs(0, 23, 500, 345);
tabsRig->selection_color((Fl_Color)FL_LIGHT1);
{ Fl_Group* o = new Fl_Group(0, 48, 500, 320, _("Hardware PTT"));
{ grpHWPTT = new Fl_Group(5, 98, 490, 265, _("h/w ptt device-pin"));
grpHWPTT->box(FL_ENGRAVED_FRAME);
grpHWPTT->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
{ inpTTYdev = new Fl_Input_Choice(200, 207, 160, 22, _("Device:"));
inpTTYdev->tooltip(_("Select serial port"));
inpTTYdev->callback((Fl_Callback*)cb_inpTTYdev);
} // Fl_Input_Choice* inpTTYdev
{ btnRTSptt = new Fl_Round_Button(145, 246, 85, 20, _("Use RTS"));
btnRTSptt->tooltip(_("RTS is PTT signal line"));
btnRTSptt->down_box(FL_DOWN_BOX);
btnRTSptt->callback((Fl_Callback*)cb_btnRTSptt);
} // Fl_Round_Button* btnRTSptt
{ btnRTSplusV = new Fl_Round_Button(262, 246, 100, 20, _("RTS = +V"));
btnRTSplusV->tooltip(_("Initial voltage on RTS"));
btnRTSplusV->down_box(FL_DOWN_BOX);
btnRTSplusV->callback((Fl_Callback*)cb_btnRTSplusV);
} // Fl_Round_Button* btnRTSplusV
{ btnDTRptt = new Fl_Round_Button(145, 276, 85, 20, _("Use DTR"));
btnDTRptt->tooltip(_("DTR is PTT signal line"));
btnDTRptt->down_box(FL_DOWN_BOX);
btnDTRptt->callback((Fl_Callback*)cb_btnDTRptt);
} // Fl_Round_Button* btnDTRptt
{ btnDTRplusV = new Fl_Round_Button(262, 276, 100, 20, _("DTR = +V"));
btnDTRplusV->tooltip(_("Initial voltage on DTR"));
btnDTRplusV->down_box(FL_DOWN_BOX);
btnDTRplusV->callback((Fl_Callback*)cb_btnDTRplusV);
} // Fl_Round_Button* btnDTRplusV
{ btnInitHWPTT = new Fl_Button(188, 314, 113, 24, _("Initialize"));
btnInitHWPTT->tooltip(_("Initialize the H/W PTT interface"));
btnInitHWPTT->callback((Fl_Callback*)cb_btnInitHWPTT);
} // Fl_Button* btnInitHWPTT
{ btnTTYptt = new Fl_Round_Button(145, 108, 220, 20, _("Use separate serial port PTT"));
btnTTYptt->down_box(FL_DOWN_BOX);
btnTTYptt->selection_color((Fl_Color)1);
btnTTYptt->callback((Fl_Callback*)cb_btnTTYptt);
} // Fl_Round_Button* btnTTYptt
{ btnUsePPortPTT = new Fl_Round_Button(145, 138, 170, 20, _("Use parallel port PTT"));
btnUsePPortPTT->down_box(FL_DOWN_BOX);
btnUsePPortPTT->selection_color((Fl_Color)1);
btnUsePPortPTT->callback((Fl_Callback*)cb_btnUsePPortPTT);
} // Fl_Round_Button* btnUsePPortPTT
{ btnUseUHrouterPTT = new Fl_Round_Button(145, 168, 170, 20, _("Use uHRouter PTT"));
btnUseUHrouterPTT->down_box(FL_DOWN_BOX);
btnUseUHrouterPTT->selection_color((Fl_Color)1);
btnUseUHrouterPTT->callback((Fl_Callback*)cb_btnUseUHrouterPTT);
} // Fl_Round_Button* btnUseUHrouterPTT
grpHWPTT->end();
} // Fl_Group* grpHWPTT
{ Fl_Group* o = new Fl_Group(5, 58, 490, 38);
{ Fl_Group* o = new Fl_Group(5, 57, 490, 38);
o->box(FL_ENGRAVED_FRAME);
{ Fl_Check_Button* o = btnPTTrightchannel = new Fl_Check_Button(130, 67, 250, 20, _("PTT tone on right audio channel "));
{ Fl_Check_Button* o = btnPTTrightchannel = new Fl_Check_Button(24, 66, 250, 20, _("PTT tone on right audio channel "));
btnPTTrightchannel->tooltip(_("Can be used in lieu of or in addition to other PTT types"));
btnPTTrightchannel->down_box(FL_DOWN_BOX);
btnPTTrightchannel->callback((Fl_Callback*)cb_btnPTTrightchannel);
@ -5813,6 +5781,79 @@ an merging"));
} // Fl_Check_Button* btnPTTrightchannel
o->end();
} // Fl_Group* o
{ grpHWPTT = new Fl_Group(5, 97, 490, 171, _("h/w ptt device-pin"));
grpHWPTT->box(FL_ENGRAVED_FRAME);
grpHWPTT->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
{ inpTTYdev = new Fl_Input_Choice(78, 151, 160, 22, _("Device:"));
inpTTYdev->tooltip(_("Select serial port"));
inpTTYdev->callback((Fl_Callback*)cb_inpTTYdev);
} // Fl_Input_Choice* inpTTYdev
{ btnRTSptt = new Fl_Round_Button(260, 120, 85, 20, _("Use RTS"));
btnRTSptt->tooltip(_("RTS is PTT signal line"));
btnRTSptt->down_box(FL_DOWN_BOX);
btnRTSptt->callback((Fl_Callback*)cb_btnRTSptt);
} // Fl_Round_Button* btnRTSptt
{ btnRTSplusV = new Fl_Round_Button(357, 120, 100, 20, _("RTS = +V"));
btnRTSplusV->tooltip(_("Initial voltage on RTS"));
btnRTSplusV->down_box(FL_DOWN_BOX);
btnRTSplusV->callback((Fl_Callback*)cb_btnRTSplusV);
} // Fl_Round_Button* btnRTSplusV
{ btnDTRptt = new Fl_Round_Button(260, 150, 85, 20, _("Use DTR"));
btnDTRptt->tooltip(_("DTR is PTT signal line"));
btnDTRptt->down_box(FL_DOWN_BOX);
btnDTRptt->callback((Fl_Callback*)cb_btnDTRptt);
} // Fl_Round_Button* btnDTRptt
{ btnDTRplusV = new Fl_Round_Button(357, 150, 100, 20, _("DTR = +V"));
btnDTRplusV->tooltip(_("Initial voltage on DTR"));
btnDTRplusV->down_box(FL_DOWN_BOX);
btnDTRplusV->callback((Fl_Callback*)cb_btnDTRplusV);
} // Fl_Round_Button* btnDTRplusV
{ btnInitHWPTT = new Fl_Button(361, 217, 113, 24, _("Initialize"));
btnInitHWPTT->tooltip(_("Initialize the H/W PTT interface"));
btnInitHWPTT->callback((Fl_Callback*)cb_btnInitHWPTT);
} // Fl_Button* btnInitHWPTT
{ btnTTYptt = new Fl_Round_Button(24, 121, 220, 20, _("Use separate serial port PTT"));
btnTTYptt->down_box(FL_DOWN_BOX);
btnTTYptt->selection_color((Fl_Color)1);
btnTTYptt->callback((Fl_Callback*)cb_btnTTYptt);
} // Fl_Round_Button* btnTTYptt
{ btnUsePPortPTT = new Fl_Round_Button(24, 197, 170, 20, _("Use parallel port PTT"));
btnUsePPortPTT->down_box(FL_DOWN_BOX);
btnUsePPortPTT->selection_color((Fl_Color)1);
btnUsePPortPTT->callback((Fl_Callback*)cb_btnUsePPortPTT);
} // Fl_Round_Button* btnUsePPortPTT
{ btnUseUHrouterPTT = new Fl_Round_Button(24, 227, 170, 20, _("Use uHRouter PTT"));
btnUseUHrouterPTT->down_box(FL_DOWN_BOX);
btnUseUHrouterPTT->selection_color((Fl_Color)1);
btnUseUHrouterPTT->callback((Fl_Callback*)cb_btnUseUHrouterPTT);
} // Fl_Round_Button* btnUseUHrouterPTT
grpHWPTT->end();
} // Fl_Group* grpHWPTT
{ grpPTTdelays = new Fl_Group(5, 270, 490, 91, _("PTT delays valid for all CAT/PTT types"));
grpPTTdelays->box(FL_ENGRAVED_FRAME);
grpPTTdelays->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
{ Fl_Counter* o = cntPTT_on_delay = new Fl_Counter(24, 297, 100, 21, _("Start of transmit PTT delay"));
cntPTT_on_delay->tooltip(_("Delay NN msec before starting audio"));
cntPTT_on_delay->minimum(0);
cntPTT_on_delay->maximum(500);
cntPTT_on_delay->step(1);
cntPTT_on_delay->callback((Fl_Callback*)cb_cntPTT_on_delay);
cntPTT_on_delay->align(FL_ALIGN_RIGHT);
o->value(progdefaults.PTT_on_delay);
o->lstep(10);
} // Fl_Counter* cntPTT_on_delay
{ Fl_Counter* o = cntPTT_off_delay = new Fl_Counter(24, 327, 100, 21, _("PTT end of transmit delay"));
cntPTT_off_delay->tooltip(_("Delay NN msec before releasing PTT"));
cntPTT_off_delay->minimum(0);
cntPTT_off_delay->maximum(500);
cntPTT_off_delay->step(1);
cntPTT_off_delay->callback((Fl_Callback*)cb_cntPTT_off_delay);
cntPTT_off_delay->align(FL_ALIGN_RIGHT);
o->value(progdefaults.PTT_off_delay);
o->lstep(10);
} // Fl_Counter* cntPTT_off_delay
grpPTTdelays->end();
} // Fl_Group* grpPTTdelays
o->end();
} // Fl_Group* o
{ Fl_Group* o = new Fl_Group(0, 48, 500, 320, _("RigCAT"));

Wyświetl plik

@ -114,7 +114,7 @@ static const char szProsigns[] = "~|%|&|+|=|{|}|<|>|[|]| ";} {}
xywh {729 57 500 400} type Double color 45 selection_color 51 labelsize 18 align 80 non_modal visible
} {
Fl_Tabs tabsConfigure {open
xywh {-4 0 544 372} color 50 selection_color 50
xywh {-5 0 545 372} color 50 selection_color 50
} {
Fl_Group tabOperator {
label Operator
@ -1282,10 +1282,10 @@ behaves inside the waterfall} xywh {15 196 150 22} down_box BORDER_BOX align 8
}
Fl_Group tabModems {
label Modems
xywh {-4 25 544 347} hide
xywh {-5 25 545 347} hide
} {
Fl_Tabs tabsModems {
xywh {-4 25 521 347} selection_color 50 align 9
xywh {-5 25 545 347} selection_color 50 align 9
} {
Fl_Group tabContestia {
label Contestia open
@ -2488,94 +2488,8 @@ progdefaults.changed = true;}
label {Hardware PTT} open
xywh {0 48 500 320}
} {
Fl_Group grpHWPTT {
label {h/w ptt device-pin} open
xywh {5 98 490 265} box ENGRAVED_FRAME align 21
} {
Fl_Input_Choice inpTTYdev {
label {Device:}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;} open
tooltip {Select serial port} xywh {200 207 160 22}
} {}
Fl_Round_Button btnRTSptt {
label {Use RTS}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {RTS is PTT signal line} xywh {145 246 85 20} down_box DOWN_BOX
}
Fl_Round_Button btnRTSplusV {
label {RTS = +V}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {Initial voltage on RTS} xywh {262 246 100 20} down_box DOWN_BOX
}
Fl_Round_Button btnDTRptt {
label {Use DTR}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {DTR is PTT signal line} xywh {145 276 85 20} down_box DOWN_BOX
}
Fl_Round_Button btnDTRplusV {
label {DTR = +V}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {Initial voltage on DTR} xywh {262 276 100 20} down_box DOWN_BOX
}
Fl_Button btnInitHWPTT {
label Initialize
callback {progdefaults.initInterface();
o->labelcolor(FL_FOREGROUND_COLOR);
progdefaults.changed = true;}
tooltip {Initialize the H/W PTT interface} xywh {188 314 113 24}
}
Fl_Round_Button btnTTYptt {
label {Use separate serial port PTT}
callback {btnUsePPortPTT->value(false);
btnUseUHrouterPTT->value(false);
progdefaults.TTYptt = o->value();
progdefaults.UsePPortPTT = false;
progdefaults.UseUHrouterPTT = false;
btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
xywh {145 108 220 20} down_box DOWN_BOX selection_color 1
}
Fl_Round_Button btnUsePPortPTT {
label {Use parallel port PTT}
callback {btnTTYptt->value(false);
btnUseUHrouterPTT->value(false);
progdefaults.TTYptt = false;
progdefaults.UsePPortPTT = o->value();
progdefaults.UseUHrouterPTT = false;
btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
xywh {145 138 170 20} down_box DOWN_BOX selection_color 1
}
Fl_Round_Button btnUseUHrouterPTT {
label {Use uHRouter PTT}
callback {btnTTYptt->value(false);
btnUsePPortPTT->value(false);
progdefaults.TTYptt = false;
progdefaults.UsePPortPTT = false;
progdefaults.UseUHrouterPTT = o->value();
btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
xywh {145 168 170 20} down_box DOWN_BOX selection_color 1
}
}
Fl_Group {} {open
xywh {5 58 490 38} box ENGRAVED_FRAME
xywh {5 57 490 38} box ENGRAVED_FRAME
} {
Fl_Check_Button btnPTTrightchannel {
label {PTT tone on right audio channel }
@ -2595,10 +2509,117 @@ if (o->value()) {
}
}
progdefaults.changed = true;}
tooltip {Can be used in lieu of or in addition to other PTT types} xywh {130 67 250 20} down_box DOWN_BOX
tooltip {Can be used in lieu of or in addition to other PTT types} xywh {24 66 250 20} down_box DOWN_BOX
code0 {o->value(progdefaults.PTTrightchannel);}
}
}
Fl_Group grpHWPTT {
label {h/w ptt device-pin} open
xywh {5 97 490 171} box ENGRAVED_FRAME align 21
} {
Fl_Input_Choice inpTTYdev {
label {Device:}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;} open
tooltip {Select serial port} xywh {78 151 160 22}
} {}
Fl_Round_Button btnRTSptt {
label {Use RTS}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {RTS is PTT signal line} xywh {260 120 85 20} down_box DOWN_BOX
}
Fl_Round_Button btnRTSplusV {
label {RTS = +V}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {Initial voltage on RTS} xywh {357 120 100 20} down_box DOWN_BOX
}
Fl_Round_Button btnDTRptt {
label {Use DTR}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {DTR is PTT signal line} xywh {260 150 85 20} down_box DOWN_BOX
}
Fl_Round_Button btnDTRplusV {
label {DTR = +V}
callback {btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
tooltip {Initial voltage on DTR} xywh {357 150 100 20} down_box DOWN_BOX
}
Fl_Button btnInitHWPTT {
label Initialize
callback {progdefaults.initInterface();
o->labelcolor(FL_FOREGROUND_COLOR);
progdefaults.changed = true;}
tooltip {Initialize the H/W PTT interface} xywh {361 217 113 24}
}
Fl_Round_Button btnTTYptt {
label {Use separate serial port PTT}
callback {btnUsePPortPTT->value(false);
btnUseUHrouterPTT->value(false);
progdefaults.TTYptt = o->value();
progdefaults.UsePPortPTT = false;
progdefaults.UseUHrouterPTT = false;
btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
xywh {24 121 220 20} down_box DOWN_BOX selection_color 1
}
Fl_Round_Button btnUsePPortPTT {
label {Use parallel port PTT}
callback {btnTTYptt->value(false);
btnUseUHrouterPTT->value(false);
progdefaults.TTYptt = false;
progdefaults.UsePPortPTT = o->value();
progdefaults.UseUHrouterPTT = false;
btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
xywh {24 197 170 20} down_box DOWN_BOX selection_color 1
}
Fl_Round_Button btnUseUHrouterPTT {
label {Use uHRouter PTT}
callback {btnTTYptt->value(false);
btnUsePPortPTT->value(false);
progdefaults.TTYptt = false;
progdefaults.UsePPortPTT = false;
progdefaults.UseUHrouterPTT = o->value();
btnInitHWPTT->labelcolor(FL_RED);
btnInitHWPTT->redraw();
progdefaults.changed = true;}
xywh {24 227 170 20} down_box DOWN_BOX selection_color 1
}
}
Fl_Group grpPTTdelays {
label {PTT delays valid for all CAT/PTT types} open
xywh {5 270 490 91} box ENGRAVED_FRAME align 21
} {
Fl_Counter cntPTT_on_delay {
label {Start of transmit PTT delay}
callback {progdefaults.PTT_on_delay = o->value();
progdefaults.changed = true;}
tooltip {Delay NN msec before starting audio} xywh {24 297 100 21} align 8 minimum 0 maximum 500 step 1
code0 {o->value(progdefaults.PTT_on_delay);}
code1 {o->lstep(10);}
}
Fl_Counter cntPTT_off_delay {
label {PTT end of transmit delay}
callback {progdefaults.PTT_off_delay = o->value();
progdefaults.changed = true;}
tooltip {Delay NN msec before releasing PTT} xywh {24 327 100 21} align 8 minimum 0 maximum 500 step 1
code0 {o->value(progdefaults.PTT_off_delay);}
code1 {o->lstep(10);}
}
}
}
Fl_Group {} {
label RigCAT open

Wyświetl plik

@ -267,6 +267,7 @@ extern Fl_Group *tabNavtex;
extern Fl_Check_Button *btnNvtxAdifLog;
extern Fl_Group *tabRig;
extern Fl_Tabs *tabsRig;
extern Fl_Check_Button *btnPTTrightchannel;
extern Fl_Group *grpHWPTT;
#include <FL/Fl_Input_Choice.H>
extern Fl_Input_Choice *inpTTYdev;
@ -278,7 +279,9 @@ extern Fl_Button *btnInitHWPTT;
extern Fl_Round_Button *btnTTYptt;
extern Fl_Round_Button *btnUsePPortPTT;
extern Fl_Round_Button *btnUseUHrouterPTT;
extern Fl_Check_Button *btnPTTrightchannel;
extern Fl_Group *grpPTTdelays;
extern Fl_Counter *cntPTT_on_delay;
extern Fl_Counter *cntPTT_off_delay;
extern Fl_Check_Button *chkUSERIGCAT;
extern Fl_Group *grpRigCAT;
#include <FL/Fl_Output.H>

Wyświetl plik

@ -958,6 +958,12 @@
ELEM_(int, TxOffset, "TXOFFSET", \
"Difference between RX and TX freq (rig offset)", \
0) \
ELEM_(int, PTT_on_delay, "PTTONDELAY", \
"Start of transmit delay before sending audio", \
0) \
ELEM_(int, PTT_off_delay, "PTTOFFDELAY", \
"End of transmit delay before disabling PTT", \
0) \
/* Contest controls and Logbook */ \
ELEM_(std::string, logbookfilename, "LOGBOOKFILENAME", \
"Logbook file name", \

Wyświetl plik

@ -113,6 +113,12 @@ void PTT::reset(ptt_t dev)
void PTT::set(bool ptt)
{
// add milliseconds - no audio to clear virtual audio card used by Flex systems
if (ptt && progdefaults.PTT_off_delay)
MilliSleep(progdefaults.PTT_off_delay);
if (!ptt && progdefaults.PTT_on_delay)
MilliSleep(progdefaults.PTT_on_delay);
if (active_modem == cw_modem &&
((progdefaults.useCWkeylineRTS) || progdefaults.useCWkeylineDTR == true))
return;