aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-02-04 21:50:26 +0100
committerAnton Babushkin <anton.babushkin@me.com>2014-02-04 21:50:26 +0100
commit6e7136c6b3f953c26cf75c9f8b777a6a7c84ea9a (patch)
tree9402e4bfb41f6cb598609e56ac792b60843d9b8a /src/modules
parentb54b0efc29287bc4de1e15266bc3b6617eeb8b73 (diff)
downloadpx4-firmware-6e7136c6b3f953c26cf75c9f8b777a6a7c84ea9a.tar.gz
px4-firmware-6e7136c6b3f953c26cf75c9f8b777a6a7c84ea9a.tar.bz2
px4-firmware-6e7136c6b3f953c26cf75c9f8b777a6a7c84ea9a.zip
rc_channels topic: bug fixed; sensors: minor cleanup
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/sensors/sensors.cpp2
-rw-r--r--src/modules/uORB/topics/rc_channels.h34
2 files changed, 18 insertions, 18 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp
index b37a744ca..73f14225d 100644
--- a/src/modules/sensors/sensors.cpp
+++ b/src/modules/sensors/sensors.cpp
@@ -674,7 +674,7 @@ Sensors::parameters_update()
}
if (param_get(_parameter_handles.rc_map_acro_sw, &(_parameters.rc_map_acro_sw)) != OK) {
- warnx("Failed getting acro sw chan index");
+ warnx(paramerr);
}
if (param_get(_parameter_handles.rc_map_flaps, &(_parameters.rc_map_flaps)) != OK) {
diff --git a/src/modules/uORB/topics/rc_channels.h b/src/modules/uORB/topics/rc_channels.h
index beb7008ab..36106751e 100644
--- a/src/modules/uORB/topics/rc_channels.h
+++ b/src/modules/uORB/topics/rc_channels.h
@@ -45,12 +45,12 @@
/**
* The number of RC channel inputs supported.
* Current (Q4/2013) radios support up to 18 channels,
- * leaving at a sane value of 15.
+ * leaving at a sane value of 16.
* 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_MAPPED_MAX 15
+#define RC_CHANNELS_MAPPED_MAX 16
/**
* This defines the mapping of the RC functions.
@@ -60,21 +60,21 @@
enum RC_CHANNELS_FUNCTION
{
THROTTLE = 0,
- ROLL = 1,
- PITCH = 2,
- YAW = 3,
- MODE = 4,
- RETURN = 5,
- ASSISTED = 6,
- MISSION = 7,
- OFFBOARD_MODE = 8,
- ACRO = 9,
- FLAPS = 10,
- AUX_1 = 11,
- AUX_2 = 12,
- AUX_3 = 13,
- AUX_4 = 14,
- AUX_5 = 14,
+ ROLL,
+ PITCH,
+ YAW,
+ MODE,
+ RETURN,
+ ASSISTED,
+ MISSION,
+ OFFBOARD_MODE,
+ ACRO,
+ FLAPS,
+ AUX_1,
+ 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. */
};