mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 08:23:33 +08:00
Added rc_map_failsafe to enable use of channels other than throttle for failsafe.
This commit is contained in:
@@ -535,6 +535,35 @@ PARAM_DEFINE_INT32(RC_MAP_ROLL, 1);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(RC_MAP_PITCH, 2);
|
||||
|
||||
/**
|
||||
* Failsafe channel mapping.
|
||||
*
|
||||
* The RC mapping index indicates which rc function
|
||||
* should be used for detecting the failsafe condition
|
||||
*
|
||||
* @min 0
|
||||
* @max 14
|
||||
*
|
||||
* mapping (from rc_channels.h)
|
||||
* THROTTLE = 0,
|
||||
ROLL = 1,
|
||||
PITCH = 2,
|
||||
YAW = 3,
|
||||
MODE = 4,
|
||||
RETURN = 5,
|
||||
ASSISTED = 6,
|
||||
MISSION = 7,
|
||||
OFFBOARD_MODE = 8,
|
||||
FLAPS = 9,
|
||||
AUX_1 = 10,
|
||||
AUX_2 = 11,
|
||||
AUX_3 = 12,
|
||||
AUX_4 = 13,
|
||||
AUX_5 = 14,
|
||||
*
|
||||
*/
|
||||
PARAM_DEFINE_INT32(RC_MAP_FAILSAFE, 0); //Default to throttle function
|
||||
|
||||
/**
|
||||
* Throttle control channel mapping.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user