mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 06:10:45 +08:00
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:
1 parent
4ac5b00a06
commit
fee7f69d63
1 file changed
+1
-1
@@ -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 ||
|
||||
|
||||
Reference in new issue
Block a user