From eb5e053a3ed379d3c816725c21e14d5dfea8f640 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Wed, 26 Oct 2011 22:04:24 -0500 Subject: [PATCH] Input configuration: Make the sticks move during the limit setting. Makes the UI more intuitive. --- ground/openpilotgcs/src/plugins/config/configinputwidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp index d09e74806..407377d3c 100644 --- a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp @@ -464,7 +464,7 @@ void ConfigInputWidget::wizardSetUpStep(enum wizardSteps step) case wizardIdentifyLimits: { dimOtherControls(false); - setTxMovement(moveAll); + setTxMovement(nothing); m_config->wzText->setText(QString(tr("Please move all controls to their maximum extents on both directions and press next when ready"))); fastMdata(); manualSettingsData=manualSettingsObj->getData(); @@ -474,6 +474,7 @@ void ConfigInputWidget::wizardSetUpStep(enum wizardSteps step) manualSettingsData.ChannelMax[i]=manualSettingsData.ChannelNeutral[i]; } connect(manualCommandObj, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(identifyLimits())); + connect(manualCommandObj, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(moveSticks())); } break; case wizardIdentifyInverted: @@ -570,6 +571,7 @@ void ConfigInputWidget::wizardTearDownStep(enum wizardSteps step) break; case wizardIdentifyLimits: disconnect(manualCommandObj, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(identifyLimits())); + disconnect(manualCommandObj, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(moveSticks())); manualSettingsObj->setData(manualSettingsData); restoreMdata(); break; @@ -734,6 +736,7 @@ void ConfigInputWidget::identifyLimits() if(manualSettingsData.ChannelMax[i]setData(manualSettingsData); } void ConfigInputWidget::setMoveFromCommand(int command) {