From 5a50828671eac21cf1f945afb8b5e397283ea819 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 28 Feb 2016 20:55:15 +0100 Subject: [PATCH] New PX4 meta --- .../PX4/ParameterFactMetaData.xml | 575 +++++++++++++++++- 1 file changed, 554 insertions(+), 21 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/ParameterFactMetaData.xml b/src/AutoPilotPlugins/PX4/ParameterFactMetaData.xml index cae0834da..f6f2bbb0a 100644 --- a/src/AutoPilotPlugins/PX4/ParameterFactMetaData.xml +++ b/src/AutoPilotPlugins/PX4/ParameterFactMetaData.xml @@ -244,12 +244,14 @@ velocity Defines the voltage where a single cell of the battery is considered empty. V 2 + 0.01 Full cell voltage Defines the voltage where a single cell of the battery is considered full. V 2 + 0.01 Voltage drop per cell on 100% load @@ -258,6 +260,7 @@ velocity 1.5 V 2 + 0.01 Number of cells @@ -266,7 +269,13 @@ velocity 10 S + 11S Battery 10S Battery + 13S Battery + 12S Battery + 15S Battery + 14S Battery + 16S Battery 3S Battery 2S Battery 5S Battery @@ -280,8 +289,11 @@ velocity Battery capacity Defines the capacity of the attached battery. + -1.0 + 100000 mA 0 + 50 Scaling factor for battery voltage sensor on PX4IO @@ -316,10 +328,9 @@ velocity Camera trigger mode - 0 disables the trigger, 1 sets it to enabled on command, 2 always on + 0 disables the trigger, 1 sets it to enabled on command, 2 always on, 3 distance based, 4 distance based enabled on command 0 - 2 - true + 4 Camera trigger pin @@ -327,6 +338,12 @@ velocity 1 123456 + + Camera trigger distance + Sets the distance at which to trigger the camera. + 0 + meters + @@ -401,6 +418,8 @@ velocity 0 30 second + 1 + 0.5 Datalink regain time threshold @@ -408,6 +427,8 @@ velocity 0 30 second + 1 + 0.5 Engine Failure Throttle Threshold @@ -415,14 +436,16 @@ velocity 0.0 1.0 1 + 0.05 Engine Failure Current/Throttle Threshold Engine failure triggers only below this current value 0.0 - 30.0 + 50.0 ampere 2 + 1 Engine Failure Time Threshold @@ -431,6 +454,7 @@ velocity 60.0 second 1 + 1 RC loss time threshold @@ -439,6 +463,7 @@ velocity 35 second 1 + 0.1 Home set horizontal threshold @@ -447,6 +472,7 @@ velocity 15 meter 2 + 0.5 Home set vertical threshold @@ -455,12 +481,17 @@ velocity 25 meter 2 + 0.5 Autosaving of params If not equal to zero the commander will automatically save parameters to persistent storage once changed. Default is on, as the interoperability with currently deployed GCS solutions depends on parameters being sticky. Developers can default it to off. 0 1 + + Enabled + Disabled + RC control input mode @@ -477,6 +508,10 @@ velocity Time-out for auto disarm after landing A non-zero, positive value specifies the time-out period in seconds after which the vehicle will be automatically disarmed in case a landing situation has been detected during this period. A value of zero means that automatic disarming is disabled. 0 + 20 + second + 0 + 1 @@ -754,6 +789,12 @@ Other values will disable magnetometer fusion completely 1.0 SD + + A value of 1 indicates that the ekf2 module will publish +replay messages for logging + 0 + 1 + @@ -1161,6 +1202,8 @@ Other values will disable magnetometer fusion completely Throttle limit max This is the maximum throttle % that can be used by the controller. For overpowered aircraft, this should be reduced to a value that provides sufficient thrust to climb at the maximum pitch angle PTCH_MAX. + 0.0 + 1.0 Throttle limit min @@ -1194,26 +1237,50 @@ Other values will disable magnetometer fusion completely Landing slope angle + 1.0 + 15.0 + degrees FW_LND_HVIRT Landing flare altitude (relative to landing altitude) - meter + 0.0 + 25.0 + meters Landing throttle limit altitude (relative landing altitude) Default of -1.0f lets the system default to applying throttle limiting at 2/3 of the flare altitude. - meter + -1.0 + 30.0 + meters Landing heading hold horizontal distance + 0 + 30.0 + meters Enable or disable usage of terrain estimate during landing 0: disabled, 1: enabled + + Flare, minimum pitch + Minimum pitch during flare, a positive sign means nose up Applied once FW_LND_TLALT is reached + 0 + 15.0 + degrees + + + Flare, maximum pitch + Maximum pitch during flare, a positive sign means nose up Applied once FW_LND_TLALT is reached + 0 + 45.0 + degrees + Landing airspeed scale factor Multiplying this factor with the minimum airspeed of the plane gives the target airspeed the landing approach. @@ -1543,6 +1610,7 @@ Other values will disable magnetometer fusion completely 0.15 0.25 2 + 0.01 Pitch time constant @@ -1550,29 +1618,37 @@ Other values will disable magnetometer fusion completely 0.15 0.25 2 + 0.01 Roll P gain Roll proportional gain, i.e. desired angular speed in rad/s for error 1 rad. 0.0 + 8 2 + 0.1 Roll rate P gain Roll rate proportional gain, i.e. control output for angular speed error 1 rad/s. 0.0 + 0.5 3 + 0.01 Roll rate I gain Roll rate integral gain. Can be set to compensate static thrust difference or gravity center offset. 0.0 + 0.01 Roll rate D gain Roll rate differential gain. Small values help reduce fast oscillations. If value is too big oscillations will appear again. 0.0 + 0.01 4 + 0.0005 Roll rate feedforward @@ -1584,26 +1660,32 @@ Other values will disable magnetometer fusion completely Pitch P gain Pitch proportional gain, i.e. desired angular speed in rad/s for error 1 rad. 0.0 + 10 1/s 2 + 0.0005 Pitch rate P gain Pitch rate proportional gain, i.e. control output for angular speed error 1 rad/s. 0.0 + 0.6 3 + 0.01 Pitch rate I gain Pitch rate integral gain. Can be set to compensate static thrust difference or gravity center offset. 0.0 2 + 0.01 Pitch rate D gain Pitch rate differential gain. Small values help reduce fast oscillations. If value is too big oscillations will appear again. 0.0 4 + 0.0005 Pitch rate feedforward @@ -1615,32 +1697,39 @@ Other values will disable magnetometer fusion completely Yaw P gain Yaw proportional gain, i.e. desired angular speed in rad/s for error 1 rad. 0.0 + 5 1/s 2 + 0.1 Yaw rate P gain Yaw rate proportional gain, i.e. control output for angular speed error 1 rad/s. 0.0 + 0.6 2 + 0.01 Yaw rate I gain Yaw rate integral gain. Can be set to compensate static thrust difference or gravity center offset. 0.0 2 + 0.01 Yaw rate D gain Yaw rate differential gain. Small values help reduce fast oscillations. If value is too big oscillations will appear again. 0.0 2 + 0.01 Yaw rate feedforward Improves tracking performance. 0.0 4 + 0.01 Yaw feed forward @@ -1648,6 +1737,7 @@ Other values will disable magnetometer fusion completely 0.0 1.0 2 + 0.01 Max roll rate @@ -1656,6 +1746,7 @@ Other values will disable magnetometer fusion completely 360.0 deg/s 1 + 5 Max pitch rate @@ -1664,14 +1755,16 @@ Other values will disable magnetometer fusion completely 360.0 deg/s 1 + 5 - + Max yaw rate A value of significantly over 120 degrees per second can already lead to mixer saturation. 0.0 360.0 deg/s 1 + 5 Max yaw rate in auto mode @@ -1680,26 +1773,31 @@ Other values will disable magnetometer fusion completely 120.0 deg/s 1 + 5 Max acro roll rate 0.0 - 360.0 + 1000.0 deg/s 1 + 5 Max acro pitch rate 0.0 - 360.0 + 1000.0 deg/s 1 + 5 Max acro yaw rate 0.0 + 1000.0 deg/s 1 + 5 Threshold for Rattitude mode @@ -1708,6 +1806,7 @@ Other values will disable magnetometer fusion completely 1.0 2 + 0.01 Roll P gain @@ -1979,7 +2078,7 @@ Other values will disable magnetometer fusion completely degree 1 - + Max manual yaw rate 0.0 degree / s @@ -1992,13 +2091,13 @@ Other values will disable magnetometer fusion completely % 2 - + Maximum horizontal velocity for which position hold is enabled (use 0 to disable check) 0.0 m/s 2 - + Maximum vertical velocity for which position hold is enabled (use 0 to disable check) 0.0 m/s @@ -2010,7 +2109,7 @@ Other values will disable magnetometer fusion completely Hz 2 - + Maximum horizonal acceleration in velocity controlled modes 2.0 10.0 @@ -2623,6 +2722,7 @@ Other values will disable magnetometer fusion completely -0.25 0.25 2 + 0.01 Pitch trim @@ -2630,6 +2730,7 @@ Other values will disable magnetometer fusion completely -0.25 0.25 2 + 0.01 Yaw trim @@ -2637,6 +2738,7 @@ Other values will disable magnetometer fusion completely -0.25 0.25 2 + 0.01 RC Channel 1 Minimum @@ -3284,36 +3386,162 @@ Other values will disable magnetometer fusion completely Default function: Camera pitch 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Auxiliary switch 2 channel mapping Default function: Camera roll 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Auxiliary switch 3 channel mapping Default function: Camera azimuth / yaw 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Channel which changes a parameter Can be used for parameter tuning with the RC. This one is further referenced as the 1st parameter channel. Set to 0 to deactivate * 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Channel which changes a parameter Can be used for parameter tuning with the RC. This one is further referenced as the 2nd parameter channel. Set to 0 to deactivate * 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Channel which changes a parameter Can be used for parameter tuning with the RC. This one is further referenced as the 3th parameter channel. Set to 0 to deactivate * 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Failsafe channel PWM threshold @@ -3355,46 +3583,235 @@ Other values will disable magnetometer fusion completely This is the main flight mode selector. The channel index (starting from 1 for channel 1) indicates which channel should be used for deciding about the main mode. A value of zero indicates the switch is not assigned. 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Return switch channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Rattitude switch channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Posctl switch channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Loiter switch channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Acro switch channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Offboard switch channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Kill switch channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Flaps channel mapping 0 18 + + RC Channel 11 + RC Channel 10 + RC Channel 13 + RC Channel 12 + RC Channel 15 + RC Channel 14 + RC Channel 17 + RC Channel 16 + RC Channel 18 + RC Channel 1 + Unassigned + RC Channel 3 + RC Channel 2 + RC Channel 5 + RC Channel 4 + RC Channel 7 + RC Channel 6 + RC Channel 9 + RC Channel 8 + Threshold for selecting assist mode @@ -3560,6 +3977,13 @@ FW_AIRSPD_MIN * RWTO_AIRSPD_SCL -1000 1000 + + Give logging app higher thread priority to avoid data loss. +This is used for gathering replay logs for the ekf2 module + A value of 0 indicates that the default priority is used. Increasing the parameter in steps of one increases the priority. + 0 + 3 + @@ -4346,6 +4770,123 @@ Maps the change of airspeed error to the acceleration setpoint RV_YAW_P + + COM_FLTMODE_CH + + + First flightmode slot (1000-1160) + If the main switch channel is in this range the selected flight mode will be applied. + + AUTO / TAKEOFF + RATTITUDE + AUTO / LAND + MANUAL + Unassigned + POSITION CONTROL + ALTITUDE CONTROL + AUTO / PAUSE + AUTO / MISSION + ACRO + RETURN TO LAUNCH + STABILIZED + OFFBOARD + + + + Second flightmode slot (1160-1320) + If the main switch channel is in this range the selected flight mode will be applied. + + AUTO / TAKEOFF + RATTITUDE + AUTO / LAND + MANUAL + Unassigned + POSITION CONTROL + ALTITUDE CONTROL + AUTO / PAUSE + AUTO / MISSION + ACRO + RETURN TO LAUNCH + STABILIZED + OFFBOARD + + + + Third flightmode slot (1320-1480) + If the main switch channel is in this range the selected flight mode will be applied. + + AUTO / TAKEOFF + RATTITUDE + AUTO / LAND + MANUAL + Unassigned + POSITION CONTROL + ALTITUDE CONTROL + AUTO / PAUSE + AUTO / MISSION + ACRO + RETURN TO LAUNCH + STABILIZED + OFFBOARD + + + + Fourth flightmode slot (1480-1640) + If the main switch channel is in this range the selected flight mode will be applied. + + AUTO / TAKEOFF + RATTITUDE + AUTO / LAND + MANUAL + Unassigned + POSITION CONTROL + ALTITUDE CONTROL + AUTO / PAUSE + AUTO / MISSION + ACRO + RETURN TO LAUNCH + STABILIZED + OFFBOARD + + + + Fift flightmode slot (1640-1800) + If the main switch channel is in this range the selected flight mode will be applied. + + AUTO / TAKEOFF + RATTITUDE + AUTO / LAND + MANUAL + Unassigned + POSITION CONTROL + ALTITUDE CONTROL + AUTO / PAUSE + AUTO / MISSION + ACRO + RETURN TO LAUNCH + STABILIZED + OFFBOARD + + + + Sixt flightmode slot (1800-2000) + If the main switch channel is in this range the selected flight mode will be applied. + + AUTO / TAKEOFF + RATTITUDE + AUTO / LAND + MANUAL + Unassigned + POSITION CONTROL + ALTITUDE CONTROL + AUTO / PAUSE + AUTO / MISSION + ACRO + RETURN TO LAUNCH + STABILIZED + OFFBOARD + + TEST_MIN @@ -4382,14 +4923,6 @@ Maps the change of airspeed error to the acceleration setpoint TEST_DEV - - Flare, minimum pitch - Minimum pitch during flare, a positive sign means nose up Applied once FW_LND_TLALT is reached - - - Flare, maximum pitch - Maximum pitch during flare, a positive sign means nose up Applied once FW_LND_TLALT is reached - SEG_TH2V_P -- 2.22.0