diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-15 22:19:06 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-15 22:19:06 +0200 |
commit | 0d917576d484d2e2dc0233c5545a16e36f6e2f41 (patch) | |
tree | 3957ef1d26713f137db9e6593a0377186ea6b028 /src/drivers/px4io/px4io.cpp | |
parent | 3eb68bc66000e01849b562e2e3f7a077e1668203 (diff) | |
download | px4-firmware-0d917576d484d2e2dc0233c5545a16e36f6e2f41.tar.gz px4-firmware-0d917576d484d2e2dc0233c5545a16e36f6e2f41.tar.bz2 px4-firmware-0d917576d484d2e2dc0233c5545a16e36f6e2f41.zip |
Enable flaps in manual override
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index d212be766..73160b2d9 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1265,11 +1265,18 @@ PX4IO::io_set_rc_config() if ((ichan >= 0) && (ichan < (int)_max_rc_input)) input_map[ichan - 1] = 3; - param_get(param_find("RC_MAP_MODE_SW"), &ichan); + param_get(param_find("RC_MAP_FLAPS"), &ichan); if ((ichan >= 0) && (ichan < (int)_max_rc_input)) input_map[ichan - 1] = 4; + param_get(param_find("RC_MAP_MODE_SW"), &ichan); + + if ((ichan >= 0) && (ichan < (int)_max_rc_input)) { + /* use out of normal bounds index to indicate special channel */ + input_map[ichan - 1] = 8; + } + /* * Iterate all possible RC inputs. */ |