SH momentary in simu
This commit is contained in:
@@ -591,6 +591,16 @@ void SimulatorDialog9X::getValues()
|
|||||||
simulator->setValues(inputs);
|
simulator->setValues(inputs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SimulatorDialogTaranis::resetSH()
|
||||||
|
{
|
||||||
|
ui->switchH->setValue(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SimulatorDialogTaranis::on_switchH_sliderReleased()
|
||||||
|
{
|
||||||
|
QTimer::singleShot(400, this, SLOT(resetSH()));
|
||||||
|
}
|
||||||
|
|
||||||
void SimulatorDialogTaranis::getValues()
|
void SimulatorDialogTaranis::getValues()
|
||||||
{
|
{
|
||||||
TxInputs inputs = {
|
TxInputs inputs = {
|
||||||
|
|||||||
@@ -165,6 +165,9 @@ class SimulatorDialogTaranis: public SimulatorDialog
|
|||||||
private:
|
private:
|
||||||
Ui::SimulatorDialogTaranis * ui;
|
Ui::SimulatorDialogTaranis * ui;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void resetSH();
|
||||||
|
void on_switchH_sliderReleased();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SIMULATORDIALOG_H
|
#endif // SIMULATORDIALOG_H
|
||||||
|
|||||||
Reference in New Issue
Block a user