diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-07 13:31:33 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-07 13:31:33 +0100 |
commit | 43418a674903d242271028c4d4eb473f95a24be6 (patch) | |
tree | 47fbf43832c09108a4f68db27b4f4eebb2ac00df | |
parent | 23a33e31cd91d074f2d16d04b0cd7f2c867d9d4b (diff) | |
download | px4-firmware-43418a674903d242271028c4d4eb473f95a24be6.tar.gz px4-firmware-43418a674903d242271028c4d4eb473f95a24be6.tar.bz2 px4-firmware-43418a674903d242271028c4d4eb473f95a24be6.zip |
application layer only, no drivers affected: Fix overflow in RC input topic - this topic is deprecated and will be removed, has been superseded by input_rc and manual_control
-rw-r--r-- | src/modules/uORB/topics/rc_channels.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/uORB/topics/rc_channels.h b/src/modules/uORB/topics/rc_channels.h index b14ae1edd..16916cc4d 100644 --- a/src/modules/uORB/topics/rc_channels.h +++ b/src/modules/uORB/topics/rc_channels.h @@ -34,6 +34,8 @@ /** * @file rc_channels.h * Definition of the rc_channels uORB topic. + * + * @deprecated DO NOT USE FOR NEW CODE */ #ifndef RC_CHANNELS_H_ @@ -63,10 +65,13 @@ enum RC_CHANNELS_FUNCTION { AUX_2, AUX_3, AUX_4, - AUX_5, - RC_CHANNELS_FUNCTION_MAX /**< Indicates the number of functions. There can be more functions than RC channels. */ + AUX_5 }; +// MAXIMUM FUNCTIONS IS != MAXIMUM RC INPUT CHANNELS + +#define RC_CHANNELS_FUNCTION_MAX 18 + /** * @addtogroup topics * @{ |