commander: fix regression issue preventing RC override from working

Boolean variable name was refactored to represent the opposite state
without a change in logic.
This commit is contained in:
tzai
2020-01-06 02:28:36 -05:00
committed by Matthias Grob
parent 4ac5b00a06
commit fee7f69d63
+1 -1
View File
@@ -1741,7 +1741,7 @@ Commander::run()
// abort auto mode or geofence reaction if sticks are moved significantly
// but only if not in a low battery handling action
const bool low_battery_reaction = _battery_warning < battery_status_s::BATTERY_WARNING_CRITICAL;
const bool low_battery_reaction = _battery_warning >= battery_status_s::BATTERY_WARNING_CRITICAL;
const bool is_rotary_wing = status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING;
const bool in_auto_mode =
_internal_state.main_state == commander_state_s::MAIN_STATE_AUTO_LAND ||