mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 03:43:33 +08:00
sensors: ASSISTED switch channel added
This commit is contained in:
@@ -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. */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user