From 383a4731c7b10aca8e79e0db75792cc59e29d48b Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Sat, 25 Jul 2015 12:02:58 +0200 Subject: [PATCH] LP-56 - UI support --- .../src/plugins/config/configtxpidwidget.cpp | 4 +- .../src/plugins/config/stabilization.ui | 115 +++++++++++++++++- 2 files changed, 112 insertions(+), 7 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/configtxpidwidget.cpp b/ground/openpilotgcs/src/plugins/config/configtxpidwidget.cpp index f8d51a97b..23d924a85 100644 --- a/ground/openpilotgcs/src/plugins/config/configtxpidwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configtxpidwidget.cpp @@ -3,6 +3,7 @@ * * @file configtxpidswidget.cpp * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012. + * @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2015. * @addtogroup GCSPlugins GCS Plugins * @{ * @addtogroup ConfigPlugin Config Plugin @@ -162,7 +163,8 @@ static bool isExpoOption(int pidOption) static bool isAcroPlusFactorOption(int pidOption) { - return pidOption == TxPIDSettings::PIDS_ACROPLUSFACTOR; + return pidOption == TxPIDSettings::PIDS_ACROPLUSFACTORPITCH + || pidOption == TxPIDSettings::PIDS_ACROPLUSFACTORROLL; } template diff --git a/ground/openpilotgcs/src/plugins/config/stabilization.ui b/ground/openpilotgcs/src/plugins/config/stabilization.ui index 42dc19125..38fbee8d6 100644 --- a/ground/openpilotgcs/src/plugins/config/stabilization.ui +++ b/ground/openpilotgcs/src/plugins/config/stabilization.ui @@ -241,7 +241,7 @@ margin-top: -1px; 0 - + 0 @@ -278,12 +278,13 @@ margin-top: -1px; fieldname:AcroInsanityFactor scale:0.01 buttongroup:77 + element:Roll - + 60 @@ -311,12 +312,13 @@ margin-top: -1px; fieldname:AcroInsanityFactor scale:0.01 buttongroup:77 + element:Roll - + 0 @@ -330,7 +332,106 @@ margin-top: -1px; - Factor + Roll Factor + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 25 + + + + <html><head/><body><p>The Acro + slider can be adjusted to change the amount of manual control blending.</p></body></html> + + + 0 + + + 100 + + + 1 + + + 50 + + + Qt::Horizontal + + + QSlider::TicksBelow + + + 5 + + + + objname:StabilizationSettingsBankX + fieldname:AcroInsanityFactor + scale:0.01 + buttongroup:77 + element:Pitch + + + + + + + + + 60 + 22 + + + + + 60 + 22 + + + + 0 + + + 100 + + + 50 + + + + objname:StabilizationSettingsBankX + fieldname:AcroInsanityFactor + scale:0.01 + buttongroup:77 + element:Pitch + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + Pitch Factor Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -27298,8 +27399,10 @@ Useful if you have accidentally changed some settings. RateYawResponsivenessSlider spinBox_5 pushButton_21 - AttitudeResponsivenessSlider_2 - spinBox_3 + AcroFactorRollSlider + AcroFactorRollSpinBox + AcroFactorPitchSlider + AcroFactorPitchSpinBox pushButton_12 RateYawResponsivenessSlider_2 expoSpinnerRoll