From 07d5c8e4d28dd801209994a719915c5aa2a3ee94 Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Tue, 14 Jan 2014 00:26:27 +0100 Subject: [PATCH] OP-1022 fixed the config plugin widget to represent new simpler settings layout --- flight/modules/ManualControl/manualcontrol.c | 2 +- .../src/plugins/config/stabilization.ui | 42 +++++++++++-------- .../altitudeholdsettings.xml | 2 +- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/flight/modules/ManualControl/manualcontrol.c b/flight/modules/ManualControl/manualcontrol.c index dbc7ecc03..7dcfb32ea 100644 --- a/flight/modules/ManualControl/manualcontrol.c +++ b/flight/modules/ManualControl/manualcontrol.c @@ -850,7 +850,7 @@ static void altitudeHoldDesired(ManualControlCommandData *cmd, bool changed) const float DEADBAND_LOW = 1.0f / 2 - DEADBAND / 2; // this is the max speed in m/s at the extents of throttle - uint8_t throttleRate; + float throttleRate; uint8_t throttleExp; static uint8_t flightMode; diff --git a/ground/openpilotgcs/src/plugins/config/stabilization.ui b/ground/openpilotgcs/src/plugins/config/stabilization.ui index 61352bd2f..e4a520311 100644 --- a/ground/openpilotgcs/src/plugins/config/stabilization.ui +++ b/ground/openpilotgcs/src/plugins/config/stabilization.ui @@ -28291,7 +28291,7 @@ border-radius: 5; - Integral + Velocity Proportional Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -28316,7 +28316,7 @@ border-radius: 5; - Proportional + Altitude Proportional Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -28347,7 +28347,7 @@ border-radius: 5; - Derivative + Velocity Integral Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -28371,8 +28371,9 @@ border-radius: 5; objname:AltitudeHoldSettings - fieldname:Kp - scale:0.001 + fieldname:AltitudePI + element:Kp + scale:0.01 haslimits:yes buttongroup:99 @@ -28396,8 +28397,9 @@ border-radius: 5; objname:AltitudeHoldSettings - fieldname:Ki - scale:0.001 + fieldname:VelocityPI + element:Kp + scale:0.01 haslimits:yes buttongroup:99 @@ -28407,7 +28409,7 @@ border-radius: 5; - 100 + 1000 50 @@ -28421,8 +28423,9 @@ border-radius: 5; objname:AltitudeHoldSettings - fieldname:Kd - scale:0.001 + fieldname:VelocityPI + element:Ki + scale:0.00001 haslimits:yes buttongroup:99 @@ -28988,7 +28991,7 @@ color: rgb(255, 255, 255); border-radius: 5; - Altitude + Control Coefficients Qt::AlignCenter @@ -29033,8 +29036,9 @@ border-radius: 5; objname:AltitudeHoldSettings - fieldname:Kp - scale:0.001 + fieldname:AltitudePI + element:Kp + scale:0.01 haslimits:yes buttongroup:99 @@ -29079,8 +29083,9 @@ border-radius: 5; objname:AltitudeHoldSettings - fieldname:Ki - scale:0.001 + fieldname:VelocityPI + element:Kp + scale:0.01 haslimits:yes buttongroup:99 @@ -29117,7 +29122,7 @@ border-radius: 5; Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - 100 + 1000 51 @@ -29125,8 +29130,9 @@ border-radius: 5; objname:AltitudeHoldSettings - fieldname:Kd - scale:0.001 + fieldname:VelocityPI + element:Ki + scale:0.00001 haslimits:yes buttongroup:99 diff --git a/shared/uavobjectdefinition/altitudeholdsettings.xml b/shared/uavobjectdefinition/altitudeholdsettings.xml index 8e88100f1..174468344 100644 --- a/shared/uavobjectdefinition/altitudeholdsettings.xml +++ b/shared/uavobjectdefinition/altitudeholdsettings.xml @@ -5,7 +5,7 @@ - +