aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB/topics/rc_channels.h
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2013-07-22 22:37:10 +0400
committerAnton Babushkin <anton.babushkin@me.com>2013-07-22 22:37:10 +0400
commit55fd19f2813110d14d536943503851255c997b6f (patch)
tree7ec0f93f19b5f598e71995e23175b5a002ef2fe3 /src/modules/uORB/topics/rc_channels.h
parent963abd66badf71a925f80e12312c429d64999424 (diff)
downloadpx4-firmware-55fd19f2813110d14d536943503851255c997b6f.tar.gz
px4-firmware-55fd19f2813110d14d536943503851255c997b6f.tar.bz2
px4-firmware-55fd19f2813110d14d536943503851255c997b6f.zip
sensors: ASSISTED switch channel added
Diffstat (limited to 'src/modules/uORB/topics/rc_channels.h')
-rw-r--r--src/modules/uORB/topics/rc_channels.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/modules/uORB/topics/rc_channels.h b/src/modules/uORB/topics/rc_channels.h
index a0bb25af4..2167e44a2 100644
--- a/src/modules/uORB/topics/rc_channels.h
+++ b/src/modules/uORB/topics/rc_channels.h
@@ -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. */
};