Fix the direction of the override switch for the new state machine

This commit is contained in:
Lorenz Meier
2013-09-24 08:22:44 +02:00
parent 65bea797b4
commit f7090db708
+1 -1
View File
@@ -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) {