Added rc_map_failsafe to enable use of channels other than throttle for failsafe.

This commit is contained in:
TickTock-
2014-04-19 13:07:09 -07:00
parent 0b85c41cd1
commit 86a0862af6
2 changed files with 40 additions and 8 deletions
+29
View File
@@ -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.
*