From d8a4d70fce1b8d7affe4033cc3122e0fd76b9ed0 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Wed, 5 Jun 2019 09:18:06 +0200 Subject: [PATCH] Add Param "User Flight Profile" This param has no effect within the Firmware. The param can be used for example: * in log post processing to have context about the flight * in ground stations to adapt the UI automatically --- src/modules/commander/Commander.hpp | 3 ++- src/modules/commander/commander_params.c | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/modules/commander/Commander.hpp b/src/modules/commander/Commander.hpp index 9cba70ae45..a15166a0b2 100644 --- a/src/modules/commander/Commander.hpp +++ b/src/modules/commander/Commander.hpp @@ -127,7 +127,8 @@ private: (ParamInt) _tas_use_start_delay, (ParamInt) _airspeed_fail_action, (ParamFloat) _airspeed_stall, - (ParamInt) _airspeed_rtl_delay + (ParamInt) _airspeed_rtl_delay, + (ParamInt) _param_com_flt_profile ) diff --git a/src/modules/commander/commander_params.c b/src/modules/commander/commander_params.c index c96ee27cfe..dab811ea73 100644 --- a/src/modules/commander/commander_params.c +++ b/src/modules/commander/commander_params.c @@ -907,3 +907,20 @@ PARAM_DEFINE_INT32(COM_ASPD_FS_ACT, 0); */ PARAM_DEFINE_INT32(COM_ASPD_FS_DLY, 0); +/** + * User Flight Profile + * + * Describes the intended use of the vehicle. + * Can be used by ground control software or log post processing. + * This param does not influence the behavior within the firmware. This means for example the control logic is independent of the setting of this param (but depends on other params). + * + * 0: Default + * 100: Pro User + * 200: Flight Tester + * 300: Developer + * + * @min 0 + * @max 1000 + * @group Commander + */ +PARAM_DEFINE_INT32(COM_FLT_PROFILE, 0);