From 54dae87017e02496dbd496dcae26d8a6e980acdb Mon Sep 17 00:00:00 2001 From: Chris Pember Date: Sat, 21 Jul 2012 12:28:55 -0700 Subject: [PATCH] fixed the hw settings apply button autofill, removed commented lines from the config_cc_hw_widget.cpp file --- .../src/plugins/config/cc_hw_settings.ui | 77 +++++++++++++++++-- .../plugins/config/config_cc_hw_widget.cpp | 8 +- 2 files changed, 72 insertions(+), 13 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/cc_hw_settings.ui b/ground/openpilotgcs/src/plugins/config/cc_hw_settings.ui index 3c9540105..e9c3d7aaf 100644 --- a/ground/openpilotgcs/src/plugins/config/cc_hw_settings.ui +++ b/ground/openpilotgcs/src/plugins/config/cc_hw_settings.ui @@ -6,17 +6,14 @@ 0 0 - 691 - 849 + 592 + 763 Form - - 12 - @@ -110,8 +107,8 @@ 0 0 - 661 - 652 + 547 + 651 @@ -445,12 +442,76 @@ + + + + + + + 255 + 255 + 255 + + + + + + + 232 + 232 + 232 + + + + + + + + + 255 + 255 + 255 + + + + + + + 232 + 232 + 232 + + + + + + + + + 232 + 232 + 232 + + + + + + + 232 + 232 + 232 + + + + + + Send to OpenPilot but don't write in SD. Beware of not locking yourself out! - true + false diff --git a/ground/openpilotgcs/src/plugins/config/config_cc_hw_widget.cpp b/ground/openpilotgcs/src/plugins/config/config_cc_hw_widget.cpp index 35a3f4c9a..f9dc84350 100644 --- a/ground/openpilotgcs/src/plugins/config/config_cc_hw_widget.cpp +++ b/ground/openpilotgcs/src/plugins/config/config_cc_hw_widget.cpp @@ -35,11 +35,9 @@ #include #include #include - -////Added to allow expert mode #include #include -//// + ConfigCCHWWidget::ConfigCCHWWidget(QWidget *parent) : ConfigTaskWidget(parent) { @@ -48,12 +46,12 @@ ConfigCCHWWidget::ConfigCCHWWidget(QWidget *parent) : ConfigTaskWidget(parent) m_telemetry->label_2->setPixmap(QPixmap(":/configgadget/images/coptercontrol.svg")); -////Added to allow expert mode + ExtensionSystem::PluginManager *pm=ExtensionSystem::PluginManager::instance(); Core::Internal::GeneralSettings * settings=pm->getObject(); if(!settings->useExpertMode()) m_telemetry->saveTelemetryToRAM->setVisible(false); -////////////////////////////////// + addApplySaveButtons(m_telemetry->saveTelemetryToRAM,m_telemetry->saveTelemetryToSD); addUAVObjectToWidgetRelation("HwSettings","CC_FlexiPort",m_telemetry->cbFlexi);