From 5a2119b8962b030da93aa5274115ac66c916854e Mon Sep 17 00:00:00 2001 From: Oleg Semyonov Date: Sun, 15 Jan 2012 21:16:57 +0200 Subject: [PATCH] Add stick deadband option to the config GUI --- .../src/plugins/config/configinputwidget.cpp | 2 + .../openpilotgcs/src/plugins/config/input.ui | 74 ++++++++++++++++++- 2 files changed, 75 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp index 3268aed0d..b08339ebc 100644 --- a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp @@ -71,6 +71,8 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) : ConfigTaskWidget(parent) ++index; } + addUAVObjectToWidgetRelation("ManualControlSettings", "Deadband", m_config->deadband, 0, 0.01f); + connect(m_config->configurationWizard,SIGNAL(clicked()),this,SLOT(goToWizard())); connect(m_config->runCalibration,SIGNAL(toggled(bool)),this, SLOT(simpleCalibration(bool))); diff --git a/ground/openpilotgcs/src/plugins/config/input.ui b/ground/openpilotgcs/src/plugins/config/input.ui index 2fac45ec9..04fc62e94 100644 --- a/ground/openpilotgcs/src/plugins/config/input.ui +++ b/ground/openpilotgcs/src/plugins/config/input.ui @@ -27,13 +27,85 @@ - 1 + 0 + + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 5 + + + + + + + + + + Roll/Pitch/Yaw stick deadband + + + + + + + Stick deadband in percents of full range (0-10), zero to disable + + + 1 + + + 10.000000000000000 + + + 0.100000000000000 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 5 + + + +