Skip to content

Commit

Permalink
Hotfix: Fixed mapping of override channel
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Dec 19, 2013
1 parent b9a533a commit 6dce571
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/drivers/px4io/px4io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6dce571

Please sign in to comment.