sensors: ASSISTED switch channel added

This commit is contained in:
Anton Babushkin
2013-07-22 22:37:10 +04:00
parent 963abd66ba
commit 55fd19f281
3 changed files with 28 additions and 11 deletions
+14 -10
View File
@@ -53,9 +53,12 @@
/**
* The number of RC channel inputs supported.
* Current (Q1/2013) radios support up to 18 channels,
* leaving at a sane value of 14.
* leaving at a sane value of 15.
* This number can be greater then number of RC channels,
* because single RC channel can be mapped to multiple
* functions, e.g. for various mode switches.
*/
#define RC_CHANNELS_MAX 14
#define RC_CHANNELS_MAX 15
/**
* This defines the mapping of the RC functions.
@@ -70,14 +73,15 @@ enum RC_CHANNELS_FUNCTION
YAW = 3,
MODE = 4,
RETURN = 5,
MISSION = 6,
OFFBOARD_MODE = 7,
FLAPS = 8,
AUX_1 = 9,
AUX_2 = 10,
AUX_3 = 11,
AUX_4 = 12,
AUX_5 = 13,
ASSISTED = 6,
MISSION = 7,
OFFBOARD_MODE = 8,
FLAPS = 9,
AUX_1 = 10,
AUX_2 = 11,
AUX_3 = 12,
AUX_4 = 13,
AUX_5 = 14,
RC_CHANNELS_FUNCTION_MAX /**< indicates the number of functions. There can be more functions than RC channels. */
};