diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-19 17:12:46 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-19 17:12:46 +0100 |
commit | 6dce57170e3ceaa3316446086f8a0cd12cc5e90c (patch) | |
tree | 36a15aaeee5473a6a679d304ff7355e224524106 /src/drivers/px4io | |
parent | b9a533acae4ee35a6ce6722552cfdfcb065c84aa (diff) | |
download | px4-firmware-6dce57170e3ceaa3316446086f8a0cd12cc5e90c.tar.gz px4-firmware-6dce57170e3ceaa3316446086f8a0cd12cc5e90c.tar.bz2 px4-firmware-6dce57170e3ceaa3316446086f8a0cd12cc5e90c.zip |
Hotfix: Fixed mapping of override channel
Diffstat (limited to 'src/drivers/px4io')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index db882e623..e898b3e60 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1024,7 +1024,12 @@ PX4IO::io_set_rc_config() if ((ichan >= 0) && (ichan < (int)_max_rc_input)) input_map[ichan - 1] = 3; - ichan = 4; + param_get(param_find("RC_MAP_MODE_SW"), &ichan); + + if ((ichan >= 0) && (ichan < (int)_max_rc_input)) + input_map[ichan - 1] = 4; + + ichan = 5; for (unsigned i = 0; i < _max_rc_input; i++) if (input_map[i] == -1) |