From 494b3d156eca07ea5651051507435db221a50e4d Mon Sep 17 00:00:00 2001 From: Kenz Dale Date: Wed, 29 Aug 2012 14:23:14 +0200 Subject: [PATCH] Fixed bug by which attitude HiTL settings were not taken into account. --- ground/openpilotgcs/src/plugins/hitl/hitloptionspage.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ground/openpilotgcs/src/plugins/hitl/hitloptionspage.cpp b/ground/openpilotgcs/src/plugins/hitl/hitloptionspage.cpp index b4985edc0..761f1d504 100644 --- a/ground/openpilotgcs/src/plugins/hitl/hitloptionspage.cpp +++ b/ground/openpilotgcs/src/plugins/hitl/hitloptionspage.cpp @@ -97,6 +97,8 @@ QWidget *HITLOptionsPage::createPage(QWidget *parent) m_optionsPage->attActualCheckbox->setChecked(config->Settings().attActualEnabled); m_optionsPage->attRawCheckbox->setChecked(config->Settings().attRawEnabled); + + m_optionsPage->attRawRateSpinbox->setValue(config->Settings().attRawRate); m_optionsPage->gpsPosRateSpinbox->setValue(config->Settings().gpsPosRate); m_optionsPage->groundTruthRateSpinbox->setValue(config->Settings().groundTruthRate); @@ -107,6 +109,9 @@ QWidget *HITLOptionsPage::createPage(QWidget *parent) m_optionsPage->minOutputPeriodSpinbox->setValue(config->Settings().minOutputPeriod); + m_optionsPage->attActHW->setChecked(config->Settings().attActHW); + m_optionsPage->attActCalc->setChecked(config->Settings().attActCalc); + m_optionsPage->attActSim->setChecked(config->Settings().attActSim); return optionsPageWidget; @@ -150,6 +155,9 @@ void HITLOptionsPage::apply() settings.manualControl = m_optionsPage->manualControlRadioButton->isChecked(); settings.gcsReceiver = m_optionsPage->gcsReceiverRadioButton->isChecked(); + settings.attActHW = m_optionsPage->attActHW->isChecked(); + settings.attActSim = m_optionsPage->attActSim->isChecked(); + settings.attActCalc = m_optionsPage->attActCalc->isChecked(); config->setSimulatorSettings(settings); }