kopia lustrzana https://gitlab.com/eliggett/wfview
We can now read the repeater access mode and update the UI. What remains
is to be able to set the mode.audioplugins
rodzic
e7f2d1eba8
commit
e4bbf62474
|
@ -210,6 +210,24 @@ void repeaterSetup::receiveDuplexMode(duplexMode dm)
|
|||
|
||||
void repeaterSetup::handleRptAccessMode(rptAccessTxRx tmode)
|
||||
{
|
||||
switch(tmode)
|
||||
{
|
||||
case ratrNN:
|
||||
ui->toneNone->setChecked(true);
|
||||
break;
|
||||
case ratrTT:
|
||||
ui->toneTSQL->setChecked(true);
|
||||
break;
|
||||
case ratrTN:
|
||||
ui->toneTone->setChecked(true);
|
||||
break;
|
||||
case ratrDD:
|
||||
ui->toneDTCS->setChecked(true);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
(void)tmode;
|
||||
}
|
||||
|
||||
|
@ -288,5 +306,6 @@ void repeaterSetup::on_debugBtn_clicked()
|
|||
{
|
||||
//emit getTone();
|
||||
//emit getTSQL();
|
||||
emit getDTCS();
|
||||
//emit getDTCS();
|
||||
emit getRptAccessMode();
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButton">
|
||||
<widget class="QRadioButton" name="toneNone">
|
||||
<property name="text">
|
||||
<string>None</string>
|
||||
</property>
|
||||
|
@ -136,7 +136,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButton_2">
|
||||
<widget class="QRadioButton" name="toneTone">
|
||||
<property name="text">
|
||||
<string>Transmit Tone only</string>
|
||||
</property>
|
||||
|
@ -146,7 +146,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButton_3">
|
||||
<widget class="QRadioButton" name="toneTSQL">
|
||||
<property name="text">
|
||||
<string>Tone Squelch</string>
|
||||
</property>
|
||||
|
@ -156,7 +156,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButton_4">
|
||||
<widget class="QRadioButton" name="toneDTCS">
|
||||
<property name="text">
|
||||
<string>DTCS</string>
|
||||
</property>
|
||||
|
|
|
@ -1065,6 +1065,9 @@ void rigCommander::parseCommand()
|
|||
// Metering such as s, power, etc
|
||||
parseLevels();
|
||||
break;
|
||||
case '\x16':
|
||||
parseRptrAccessMode();
|
||||
break;
|
||||
case '\x19':
|
||||
// qDebug(logRig()) << "Have rig ID: " << (unsigned int)payloadIn[2];
|
||||
// printHex(payloadIn, false, true);
|
||||
|
@ -1955,6 +1958,15 @@ void rigCommander::parseRegister1B()
|
|||
}
|
||||
}
|
||||
|
||||
void rigCommander::parseRptrAccessMode()
|
||||
{
|
||||
//"INDEX: 00 01 02 03 "
|
||||
//"DATA: 16 5d 00 fd "
|
||||
// ^-- mode info here
|
||||
|
||||
emit haveRptAccessMode((rptAccessTxRx)payloadIn.at(2));
|
||||
}
|
||||
|
||||
void rigCommander::parseBandStackReg()
|
||||
{
|
||||
// qDebug(logRig()) << "Band stacking register response received: ";
|
||||
|
|
|
@ -297,6 +297,7 @@ private:
|
|||
void parseRegisters1A();
|
||||
void parseRegister1B();
|
||||
void parseRegisters1C();
|
||||
void parseRptrAccessMode();
|
||||
void parseBandStackReg();
|
||||
void parsePTT();
|
||||
void parseATU();
|
||||
|
|
Ładowanie…
Reference in New Issue