Skip to content

Commit

Permalink
Merge pull request tomojitakasu#507 from ourairquality/rtknavi-qt-mon…
Browse files Browse the repository at this point in the history
…-nav-gal

rknavi_qt monitor galileo nav: update info on set change
  • Loading branch information
JensReimann authored Oct 29, 2024
2 parents 5059912 + 7c316ed commit 7282f07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/qtapp/rtknavi_qt/mondlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ MonitorDialog::MonitorDialog(QWidget *parent, rtksvr_t *server, stream_t* stream
connect(ui->cBSelectObservation, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MonitorDialog::observationModeChanged);
connect(ui->cBSelectInputStream, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MonitorDialog::inputStreamChanged);
connect(ui->cBSelectSolutionStream, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MonitorDialog::solutionStreamChanged);
connect(ui->cBSelectEphemeris, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MonitorDialog::ephemerisSetChanged);
connect(&updateTimer, &QTimer::timeout, this, &MonitorDialog::updateDisplays);
}
//---------------------------------------------------------------------------
Expand Down Expand Up @@ -127,6 +128,16 @@ void MonitorDialog::solutionStreamChanged()
ui->tWConsole->clear();
}
//---------------------------------------------------------------------------
void MonitorDialog::ephemerisSetChanged()
{
int sys = sys_tbl[ui->cBSelectSingleNavigationSystem->currentIndex() + 1];
if (sys == SYS_GAL) {
ui->lblInformation->setText((ui->cBSelectEphemeris->currentIndex() % 2) ? tr("F/NAV") : tr("I/NAV"));
} else {
ui->lblInformation->setText("");
}
}
//---------------------------------------------------------------------------
void MonitorDialog::updateDisplays()
{
if (!isVisible()) return;
Expand Down
1 change: 1 addition & 0 deletions app/qtapp/rtknavi_qt/mondlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public slots:
void consoleFormatChanged();
void inputStreamChanged();
void solutionStreamChanged();
void ephemerisSetChanged();

private:
int consoleFormat, inputStream, solutionStream, fontScale;
Expand Down

0 comments on commit 7282f07

Please sign in to comment.