kopia lustrzana https://gitlab.com/eliggett/wfview
ATU status supression
rodzic
f0c7bfff92
commit
55819d3418
13
wfmain.cpp
13
wfmain.cpp
|
@ -4312,13 +4312,16 @@ void wfmain::on_tuneNowBtn_clicked()
|
||||||
{
|
{
|
||||||
queue->addUnique(priorityImmediate,queueItem(funcTunerStatus,QVariant::fromValue<uchar>(2U)));
|
queue->addUnique(priorityImmediate,queueItem(funcTunerStatus,QVariant::fromValue<uchar>(2U)));
|
||||||
showStatusBarText("Starting ATU tuning cycle...");
|
showStatusBarText("Starting ATU tuning cycle...");
|
||||||
|
ATUCheckTimer.setSingleShot(true);
|
||||||
|
ATUCheckTimer.start(5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wfmain::on_tuneEnableChk_clicked(bool checked)
|
void wfmain::on_tuneEnableChk_clicked(bool checked)
|
||||||
{
|
{
|
||||||
queue->addUnique(priorityImmediate,queueItem(funcTunerStatus,QVariant::fromValue<uchar>(checked)));
|
queue->addUnique(priorityImmediate,queueItem(funcTunerStatus,QVariant::fromValue<uchar>(checked)));
|
||||||
|
|
||||||
showStatusBarText(QString("Turning %0 ATU").arg(checked?"on":"off"));
|
showStatusBarText(QString("Turning %0 ATU").arg(checked?"on":"off"));
|
||||||
|
ATUCheckTimer.setSingleShot(true);
|
||||||
|
ATUCheckTimer.start(5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wfmain::on_exitBtn_clicked()
|
bool wfmain::on_exitBtn_clicked()
|
||||||
|
@ -4398,20 +4401,24 @@ void wfmain::receiveATUStatus(unsigned char atustatus)
|
||||||
ui->tuneEnableChk->blockSignals(true);
|
ui->tuneEnableChk->blockSignals(true);
|
||||||
ui->tuneEnableChk->setChecked(false);
|
ui->tuneEnableChk->setChecked(false);
|
||||||
ui->tuneEnableChk->blockSignals(false);
|
ui->tuneEnableChk->blockSignals(false);
|
||||||
showStatusBarText("ATU not enabled.");
|
if(ATUCheckTimer.isActive())
|
||||||
|
showStatusBarText("ATU not enabled.");
|
||||||
break;
|
break;
|
||||||
case 0x01:
|
case 0x01:
|
||||||
// ATU enabled
|
// ATU enabled
|
||||||
ui->tuneEnableChk->blockSignals(true);
|
ui->tuneEnableChk->blockSignals(true);
|
||||||
ui->tuneEnableChk->setChecked(true);
|
ui->tuneEnableChk->setChecked(true);
|
||||||
ui->tuneEnableChk->blockSignals(false);
|
ui->tuneEnableChk->blockSignals(false);
|
||||||
showStatusBarText("ATU enabled.");
|
if(ATUCheckTimer.isActive())
|
||||||
|
showStatusBarText("ATU enabled.");
|
||||||
break;
|
break;
|
||||||
case 0x02:
|
case 0x02:
|
||||||
// ATU tuning in-progress.
|
// ATU tuning in-progress.
|
||||||
// Add command queue to check again and update status bar
|
// Add command queue to check again and update status bar
|
||||||
// qInfo(logSystem()) << "Received ATU status update that *tuning* is taking place";
|
// qInfo(logSystem()) << "Received ATU status update that *tuning* is taking place";
|
||||||
showStatusBarText("ATU is Tuning...");
|
showStatusBarText("ATU is Tuning...");
|
||||||
|
ATUCheckTimer.stop();
|
||||||
|
ATUCheckTimer.start(5000);
|
||||||
queue->add(priorityHighest,funcTunerStatus);
|
queue->add(priorityHighest,funcTunerStatus);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
1
wfmain.h
1
wfmain.h
|
@ -513,6 +513,7 @@ private:
|
||||||
void initLogging();
|
void initLogging();
|
||||||
QTimer logCheckingTimer;
|
QTimer logCheckingTimer;
|
||||||
int logCheckingOldPosition = 0;
|
int logCheckingOldPosition = 0;
|
||||||
|
QTimer ATUCheckTimer;
|
||||||
|
|
||||||
QCustomPlot *plot; // line plot
|
QCustomPlot *plot; // line plot
|
||||||
QCustomPlot *wf; // waterfall image
|
QCustomPlot *wf; // waterfall image
|
||||||
|
|
Ładowanie…
Reference in New Issue