From 5843b6ac31f91da04f9e3aa79310c15567bc547c Mon Sep 17 00:00:00 2001 From: Michael Carpenter Date: Thu, 23 May 2013 09:26:20 -0400 Subject: [PATCH] Change for new arduplane.pdef.xml, and some small visual fixes on the Configuration page --- files/ardupilotmega/arduplane.pdef.xml | 1266 +++++++++++++++++------- src/ui/QGCVehicleConfig.cc | 4 +- src/ui/QGCVehicleConfig.ui | 60 +- 3 files changed, 937 insertions(+), 393 deletions(-) diff --git a/files/ardupilotmega/arduplane.pdef.xml b/files/ardupilotmega/arduplane.pdef.xml index ca6d29792..d96d60205 100644 --- a/files/ardupilotmega/arduplane.pdef.xml +++ b/files/ardupilotmega/arduplane.pdef.xml @@ -220,6 +220,12 @@ ReturnToLaunch + +Volts + + +mAh + Disabled @@ -377,7 +383,12 @@ - + + +Disabled +Default +Default+IMU + @@ -488,7 +499,7 @@ seconds -0 4000 +0 8000 1 Centimeters @@ -500,7 +511,7 @@ -XL-EZ0 +XL-EZ0 / XL-EZ4 LV-EZ0 XLL-EZ0 HRLV @@ -540,7 +551,7 @@ - + mAh @@ -557,7 +568,7 @@ 0 20 -.1 +0.1 @@ -628,7 +639,7 @@ ms -10 200 +20 200 10 Centimeters/Second @@ -769,6 +780,13 @@ + +Disabled +Default +Default+IMU +Default+Motors +Default+INav + 1 10 @@ -824,7 +842,6 @@ 0 32767 -0 32767 Plus X @@ -840,18 +857,47 @@ RTL Save Trim Save WP +Multi Mode Camera Trigger Sonar +Fence +ResetToArmedYaw - -1 90 -1 -Degrees/Second + + +Do Nothing +Flip +Simple Mode +RTL +Save Trim +Save WP +Multi Mode +Camera Trigger +Sonar +Fence +ResetToArmedYaw + + + + +Disabled +Enabled + + + +0 10 + + +0 10 + + +0 10 -125,400,490 -Hertz (Hz) +50 490 +1 +Hz 1 10 @@ -888,53 +934,192 @@ GPS Nav Blink - + +0.08 0.20 + + +0.01 0.5 + + +0 500 +PWM + + 0.001 0.008 - + +0.08 0.20 + + +0.01 0.5 + + +0 500 +PWM + + 0.001 0.008 - + +0.150 0.250 + + +0.010 0.020 + + +0 500 +PWM + + 0.000 0.001 - + +2.000 6.000 + + +0.020 0.060 + + +0 4500 +Centi-Degrees + + 0.200 0.600 - + +2.000 6.000 + + +0.020 0.060 + + +0 4500 +Centi-Degrees + + 0.200 0.600 - + +1.000 8.000 + + +0.000 0.100 + + +0 500 +cm/s/s + + 0.000 0.400 - + +0.500 1.500 + + +0.000 3.000 + + +0 500 +PWM + + 0.000 0.400 - + +2.000 3.000 + + +0.250 0.750 + + +0 4500 +Centi-Degrees + + 0.100 0.140 - + +2.000 3.000 + + +0.250 0.750 + + +0 4500 +Centi-Degrees + + 0.100 0.140 - + +3.000 6.000 + + +0.000 0.100 + + 0 4500 +Centi-Degrees/Sec - + +3.000 6.000 + + +0.000 0.100 + + 0 4500 +Centi-Degrees/Sec + + +3.000 6.000 + + +0.000 0.100 - + 0 4500 +Centi-Degrees/Sec - + +1.000 3.000 + + +0.000 0.100 + + 0 500 +cm/s + + +0.100 0.300 - + +0.000 0.100 + + 0 3000 +cm/s + + +0.100 0.300 + + +0.000 0.100 - + 0 3000 +cm/s + + +Disabled +Default +Default+IMU + + MANUAL @@ -1022,7 +1207,7 @@ - + mAh @@ -1215,7 +1400,15 @@ meters - + + +1 + + +1 + + + Servo @@ -1361,32 +1554,7 @@ ElevatorWithInput - -800 2200 -1 -ms - - -800 2200 -1 -ms - - -800 2200 -1 -ms - - - -Reversed -Normal - - - - - - - + Disabled Manual @@ -1411,32 +1579,9 @@ ElevatorWithInput - -800 2200 -1 -ms - - -800 2200 -1 -ms - - -800 2200 -1 -ms - - - -Reversed -Normal - - - - - - + + Disabled Manual @@ -1461,32 +1606,7 @@ ElevatorWithInput - -800 2200 -1 -ms - - -800 2200 -1 -ms - - -800 2200 -1 -ms - - - -Reversed -Normal - - - - - - - + Disabled Manual @@ -1511,32 +1631,9 @@ ElevatorWithInput - -800 2200 -1 -ms - - -800 2200 -1 -ms - - -800 2200 -1 -ms - - - -Reversed -Normal - - - - - - + + Disabled Manual @@ -1561,32 +1658,7 @@ ElevatorWithInput - -800 2200 -1 -ms - - -800 2200 -1 -ms - - -800 2200 -1 -ms - - - -Reversed -Normal - - - - - - - + Disabled Manual @@ -1611,32 +1683,61 @@ ElevatorWithInput - -800 2200 -1 -ms - - -800 2200 -1 -ms - - -800 2200 -1 -ms - - + + + -Reversed -Normal +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput - + + +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput + - - + + Disabled Manual @@ -1661,28 +1762,134 @@ ElevatorWithInput - -800 2200 -1 -ms + + +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput + - -800 2200 -1 -ms + + + + +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput + - -800 2200 -1 -ms + + +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput + - + + + -Reversed -Normal +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput - + + +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput + @@ -1711,29 +1918,31 @@ ElevatorWithInput - -800 2200 -1 -ms - - -800 2200 -1 -ms - - -800 2200 -1 -ms - - + -Reversed -Normal +Disabled +Manual +Flap +Flap_auto +Aileron +flaperon +mount_pan +mount_tilt +mount_roll +mount_open +camera_trigger +release +mount2_pan +mount2_tilt +mount2_roll +mount2_open +DifferentialSpoiler1 +DifferentialSpoiler2 +AileronWithInput +Elevator +ElevatorWithInput - - @@ -1809,7 +2018,15 @@ - + +-400 400 +1 + + +-400 400 +1 + + -400 400 1 @@ -1844,7 +2061,17 @@ 1 - + +-1000 1000 +1 +Offset per Amp or at Full Throttle + + +-1000 1000 +1 +Offset per Amp or at Full Throttle + + -1000 1000 1 Offset per Amp or at Full Throttle @@ -1882,11 +2109,34 @@ - + +0.8 1.2 + + +0.8 1.2 + + +0.8 1.2 + + +-300 300 +m/s/s + + -300 300 m/s/s - + +-300 300 +m/s/s + + +rad/s + + +rad/s + + rad/s @@ -1907,6 +2157,10 @@ .01 + +Disabled +Enabled + 0.1 0.4 @@ -1921,7 +2175,16 @@ 1 m/s - + +-10 10 +Radians + + +-10 10 +Radians + + +-10 10 Radians @@ -1953,12 +2216,13 @@ Pitch270 - + 0.001 0.5 .01 0 10 +1 @@ -2002,17 +2266,47 @@ GPS_point - + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees @@ -2101,17 +2395,47 @@ GPS_point - + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees @@ -2168,26 +2492,126 @@ -Disabled -RC5 -RC6 -RC7 -RC8 +Disabled +RC5 +RC6 +RC7 +RC8 + + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +0 100 +1 + + + + +800 2200 +1 +ms + + +800 2200 +1 +ms + + +800 2200 +1 +ms + + + +Reversed +Normal + + + + + + + +800 2200 +1 +ms + + +800 2200 +1 +ms + + +800 2200 +1 +ms + + + +Reversed +Normal + + + + + + + +800 2200 +1 +ms + + +800 2200 +1 +ms + + +800 2200 +1 +ms + + + +Reversed +Normal - --18000 17999 + + + + + +800 2200 1 -Centi-Degrees +ms - --18000 17999 + +800 2200 1 -Centi-Degrees +ms - -0 100 + +800 2200 1 +ms + + + +Reversed +Normal + + + @@ -2711,7 +3135,15 @@ - + +-400 400 +1 + + +-400 400 +1 + + -400 400 1 @@ -2746,7 +3178,17 @@ 1 - + +-1000 1000 +1 +Offset per Amp or at Full Throttle + + +-1000 1000 +1 +Offset per Amp or at Full Throttle + + -1000 1000 1 Offset per Amp or at Full Throttle @@ -2781,95 +3223,79 @@ - - -0 10 -0.1 - - -0 10 -0.1 + + - - - -0 2000 -50 -Centimeters/Second + +0.8 1.2 - -100 1000 -1 -Centimeters + +0.8 1.2 - -0 1000 -50 -Centimeters/Second + +0.8 1.2 - -0 1000 -50 -Centimeters/Second + +-300 300 +m/s/s - -0 2000 -50 -Centimeters/Second + +-300 300 +m/s/s - - - -0 2000 -50 -Centimeters/Second + +-300 300 +m/s/s - -100 1000 -1 -Centimeters + +rad/s - -0 1000 -50 -Centimeters/Second + +rad/s - -0 1000 -50 -Centimeters/Second + +rad/s - -0 2000 -50 -Centimeters/Second + + +Default +5Hz +10Hz +20Hz +42Hz +98Hz + +Hz - - -0 2000 -50 -Centimeters/Second + + +0 10 +0.1 - -100 1000 -1 -Centimeters + +0 10 +0.1 - -0 1000 -50 -Centimeters/Second + + + +0 10 +0.1 - -0 1000 -50 -Centimeters/Second + +0 10 +0.1 - -0 2000 -50 -Centimeters/Second + + + +0 10 +0.1 + + +0 10 +0.1 @@ -2878,6 +3304,10 @@ .01 + +Disabled +Enabled + 0.1 0.4 @@ -2892,7 +3322,16 @@ 1 m/s - + +-10 10 +Radians + + +-10 10 +Radians + + +-10 10 Radians @@ -2924,12 +3363,13 @@ Pitch270 - + 0.001 0.5 .01 0 10 +1 @@ -2942,17 +3382,47 @@ GPS_point - + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees @@ -3041,17 +3511,47 @@ GPS_point - + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + +-18000 17999 +1 +Centi-Degrees + + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees - + -18000 17999 1 Centi-Degrees @@ -3130,36 +3630,22 @@ 1 - - - -Disabled -Enabled - + + +1 - - -None -Altitude -Circle -Altitude and Circle - + +1 - + + + -Report Only -RTL or Land +Disabled +ShowSlipe +ShowOverruns - -10 1000 -1 -Meters - - -0 10000 -Meters - @@ -3308,14 +3794,76 @@ 1 + + + + +meters/Volt +0.001 + + +Volts +0.001 + + + +Linear +Inverted +Hyperbolic + + + +centimeters +1 + + +centimeters +1 + + + +Disabled +Enabled + + + + + +milliseconds +1 + + - + +0.8 1.2 + + +0.8 1.2 + + +0.8 1.2 + + +-300 300 +m/s/s + + -300 300 m/s/s - + +-300 300 +m/s/s + + +rad/s + + +rad/s + + rad/s @@ -3336,6 +3884,10 @@ .01 + +Disabled +Enabled + 0.1 0.4 @@ -3350,7 +3902,16 @@ 1 m/s - + +-10 10 +Radians + + +-10 10 +Radians + + +-10 10 Radians @@ -3382,12 +3943,13 @@ Pitch270 - + 0.001 0.5 .01 0 10 +1 diff --git a/src/ui/QGCVehicleConfig.cc b/src/ui/QGCVehicleConfig.cc index 1f110b9c7..13805abcb 100644 --- a/src/ui/QGCVehicleConfig.cc +++ b/src/ui/QGCVehicleConfig.cc @@ -275,7 +275,7 @@ void QGCVehicleConfig::loadQgcConfig(bool primary) QPushButton *button = new QPushButton(ui->scrollAreaWidgetContents_3); connect(button,SIGNAL(clicked()),this,SLOT(menuButtonClicked())); ui->navBarLayout->insertWidget(2,button); - button->setMinimumHeight(100); + button->setMinimumHeight(75); button->setMinimumWidth(100); button->show(); button->setText(dir); @@ -328,7 +328,7 @@ void QGCVehicleConfig::loadQgcConfig(bool primary) ui->stackedWidget->insertWidget(2,tab); buttonToWidgetMap[button] = tab; - button->setMinimumHeight(100); + button->setMinimumHeight(75); button->setMinimumWidth(100); button->show(); button->setText(dir); diff --git a/src/ui/QGCVehicleConfig.ui b/src/ui/QGCVehicleConfig.ui index 69de36129..707b9bc75 100644 --- a/src/ui/QGCVehicleConfig.ui +++ b/src/ui/QGCVehicleConfig.ui @@ -13,18 +13,18 @@ Form - + - 125 + 135 0 - 125 + 135 16777215 @@ -36,7 +36,7 @@ 0 0 - 123 + 133 582 @@ -51,13 +51,13 @@ 100 - 100 + 75 - 100 - 100 + 16777215 + 16777215 @@ -71,13 +71,7 @@ Calibration 100 - 100 - - - - - 100 - 100 + 75 @@ -91,13 +85,7 @@ Calibration 100 - 100 - - - - - 100 - 100 + 75 @@ -111,13 +99,7 @@ Config 100 - 100 - - - - - 100 - 100 + 75 @@ -800,8 +782,8 @@ p, li { white-space: pre-wrap; } 0 0 - 314 - 508 + 98 + 28 @@ -875,8 +857,8 @@ p, li { white-space: pre-wrap; } 0 0 - 314 - 434 + 98 + 28 @@ -912,8 +894,8 @@ p, li { white-space: pre-wrap; } 0 0 - 313 - 434 + 98 + 28 @@ -991,8 +973,8 @@ p, li { white-space: pre-wrap; } 0 0 - 161 - 446 + 98 + 28 @@ -1028,8 +1010,8 @@ p, li { white-space: pre-wrap; } 0 0 - 160 - 446 + 98 + 28 @@ -1079,7 +1061,7 @@ p, li { white-space: pre-wrap; } - 40 + 30 20 -- 2.22.0