Skip to content

Commit

Permalink
qtapp codeopt: correct C07/L1S and C08/L1L selection
Browse files Browse the repository at this point in the history
Off by one issue with L1S and L1L, was including L1E and missing L1S,
and the respective mask bits were off.
  • Loading branch information
ourairquality committed Dec 11, 2024
1 parent 49a941b commit 25bbbaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/qtapp/rtkconv_qt/codeopt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ void CodeOptDialog::setCodeMask(int i, const QString &mask)
ui->S26->setChecked(mask[25] == '1');
} else if (i == 5) { //BDS
ui->C02->setChecked(mask[1] == '1');
ui->C07->setChecked(mask[6] == '1');
ui->C08->setChecked(mask[7] == '1');
ui->C09->setChecked(mask[8] == '1');
ui->C12->setChecked(mask[11] == '1');
ui->C13->setChecked(mask[12] == '1');
ui->C18->setChecked(mask[17] == '1');
Expand Down Expand Up @@ -240,8 +240,8 @@ QString CodeOptDialog::getCodeMask(int i)
if (ui->S26->isChecked()) mask[25] = '1';
} else if (i == 5) { // BDS
if (ui->C02->isChecked()) mask[1] = '1';
if (ui->C07->isChecked()) mask[6] = '1';
if (ui->C08->isChecked()) mask[7] = '1';
if (ui->C09->isChecked()) mask[8] = '1';
if (ui->C12->isChecked()) mask[11] = '1';
if (ui->C13->isChecked()) mask[12] = '1';
if (ui->C18->isChecked()) mask[17] = '1';
Expand Down Expand Up @@ -372,8 +372,8 @@ void CodeOptDialog::setUnsetAll()
ui->S26->setChecked(set);

ui->C02->setChecked(set);
ui->C07->setChecked(set);
ui->C08->setChecked(set);
ui->C09->setChecked(set);
ui->C12->setChecked(set);
ui->C13->setChecked(set);
ui->C18->setChecked(set);
Expand Down Expand Up @@ -515,8 +515,8 @@ void CodeOptDialog::updateEnable()
ui->S26->setEnabled((navSystem & SYS_SBS) && (frequencyType & FREQTYPE_L3));

ui->C02->setEnabled((navSystem & SYS_CMP) && (frequencyType & FREQTYPE_L1));
ui->C07->setEnabled((navSystem & SYS_CMP) && (frequencyType & FREQTYPE_L1));
ui->C08->setEnabled((navSystem & SYS_CMP) && (frequencyType & FREQTYPE_L1));
ui->C09->setEnabled((navSystem & SYS_CMP) && (frequencyType & FREQTYPE_L1));
ui->C12->setEnabled((navSystem & SYS_CMP) && (frequencyType & FREQTYPE_L1));
ui->C13->setEnabled((navSystem & SYS_CMP) && (frequencyType & FREQTYPE_L1));
ui->C18->setEnabled((navSystem & SYS_CMP) && (frequencyType & FREQTYPE_L1));
Expand Down
4 changes: 2 additions & 2 deletions app/qtapp/rtkconv_qt/codeopt.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="C09">
<widget class="QCheckBox" name="C08">
<property name="toolTip">
<string>Pilot</string>
</property>
Expand Down Expand Up @@ -1692,7 +1692,7 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="C08">
<widget class="QCheckBox" name="C07">
<property name="toolTip">
<string>Data</string>
</property>
Expand Down

0 comments on commit 25bbbaf

Please sign in to comment.