diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-24 08:22:44 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-24 08:22:44 +0200 |
commit | f7090db7081922cc61e79fce800fb6bce84a3836 (patch) | |
tree | ee3f8c1ae24cc1ef86e7a1433bd69c51887a8afd /src/modules/px4iofirmware/controls.c | |
parent | 65bea797b42a9a967772754994c767959481162c (diff) | |
download | px4-firmware-f7090db7081922cc61e79fce800fb6bce84a3836.tar.gz px4-firmware-f7090db7081922cc61e79fce800fb6bce84a3836.tar.bz2 px4-firmware-f7090db7081922cc61e79fce800fb6bce84a3836.zip |
Fix the direction of the override switch for the new state machine
Diffstat (limited to 'src/modules/px4iofirmware/controls.c')
-rw-r--r-- | src/modules/px4iofirmware/controls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/controls.c b/src/modules/px4iofirmware/controls.c index 617b536f4..5c621cfb2 100644 --- a/src/modules/px4iofirmware/controls.c +++ b/src/modules/px4iofirmware/controls.c @@ -286,7 +286,7 @@ controls_tick() { * requested override. * */ - if ((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_OK) && (REG_TO_SIGNED(r_rc_values[4]) > RC_CHANNEL_HIGH_THRESH)) + if ((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_OK) && (REG_TO_SIGNED(r_rc_values[4]) < RC_CHANNEL_LOW_THRESH)) override = true; if (override) { |