From 4c8e9265c44c3ac9362c47911a1e07988f978318 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 19 Feb 2016 18:09:20 -0500 Subject: [PATCH] FW update position control param metadata --- .../fw_pos_control_l1_params.c | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_params.c b/src/modules/fw_pos_control_l1/fw_pos_control_l1_params.c index 1363e705ea..7853b6cd2e 100644 --- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_params.c +++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_params.c @@ -133,6 +133,8 @@ PARAM_DEFINE_FLOAT(FW_R_LIM, 50.0f); * For overpowered aircraft, this should be reduced to a value that * provides sufficient thrust to climb at the maximum pitch angle PTCH_MAX. * + * @min 0.0 + * @max 1.0 * @group L1 Control */ PARAM_DEFINE_FLOAT(FW_THR_MAX, 1.0f); @@ -394,6 +396,9 @@ PARAM_DEFINE_FLOAT(FW_T_SRATE_P, 0.02f); /** * Landing slope angle * + * @unit degrees + * @min 1.0 + * @max 15.0 * @group L1 Control */ PARAM_DEFINE_FLOAT(FW_LND_ANG, 5.0f); @@ -408,7 +413,9 @@ PARAM_DEFINE_FLOAT(FW_LND_HVIRT, 10.0f); /** * Landing flare altitude (relative to landing altitude) * - * @unit meter + * @unit meters + * @min 0.0 + * @max 25.0 * @group L1 Control */ PARAM_DEFINE_FLOAT(FW_LND_FLALT, 8.0f); @@ -419,7 +426,9 @@ PARAM_DEFINE_FLOAT(FW_LND_FLALT, 8.0f); * Default of -1.0f lets the system default to applying throttle * limiting at 2/3 of the flare altitude. * - * @unit meter + * @unit meters + * @min -1.0 + * @max 30.0 * @group L1 Control */ PARAM_DEFINE_FLOAT(FW_LND_TLALT, -1.0f); @@ -427,6 +436,9 @@ PARAM_DEFINE_FLOAT(FW_LND_TLALT, -1.0f); /** * Landing heading hold horizontal distance * + * @unit meters + * @min 0 + * @max 30.0 * @group L1 Control */ PARAM_DEFINE_FLOAT(FW_LND_HHDIST, 15.0f); @@ -446,6 +458,11 @@ PARAM_DEFINE_INT32(FW_LND_USETER, 0); * Minimum pitch during flare, a positive sign means nose up * Applied once FW_LND_TLALT is reached * + * @unit degrees + * @min 0 + * @max 15.0 + * @group L1 Control + * */ PARAM_DEFINE_FLOAT(FW_FLARE_PMIN, 2.5f); @@ -455,6 +472,11 @@ PARAM_DEFINE_FLOAT(FW_FLARE_PMIN, 2.5f); * Maximum pitch during flare, a positive sign means nose up * Applied once FW_LND_TLALT is reached * + * @unit degrees + * @min 0 + * @max 45.0 + * @group L1 Control + * */ PARAM_DEFINE_FLOAT(FW_FLARE_PMAX, 15.0f);