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
This commit is contained in:
Thomas Gubler 2019-06-05 09:18:06 +02:00 committed by Lorenz Meier
parent 1d5684823d
commit d8a4d70fce
2 changed files with 19 additions and 1 deletions

View File

@ -127,7 +127,8 @@ private:
(ParamInt<px4::params::COM_TAS_FS_T2>) _tas_use_start_delay,
(ParamInt<px4::params::COM_ASPD_FS_ACT>) _airspeed_fail_action,
(ParamFloat<px4::params::COM_ASPD_STALL>) _airspeed_stall,
(ParamInt<px4::params::COM_ASPD_FS_DLY>) _airspeed_rtl_delay
(ParamInt<px4::params::COM_ASPD_FS_DLY>) _airspeed_rtl_delay,
(ParamInt<px4::params::COM_FLT_PROFILE>) _param_com_flt_profile
)

View File

@ -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);