Skip to content

Commit

Permalink
Plane: fixed handling of arming with safety on
Browse files Browse the repository at this point in the history
if safety is on and you force arm them turn safety off then Q modes
cannot run the motors as the AP_Motors armed state will still be off.

This ensures that the motors are armed immediately we arm. This
matches what copter does when arming with safety on
  • Loading branch information
tridge committed Feb 3, 2024
1 parent 1e4f597 commit 4f327e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduPlane/AP_Arming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void AP_Arming_Plane::change_arm_state(void)
{
update_soft_armed();
#if HAL_QUADPLANE_ENABLED
plane.quadplane.set_armed(is_armed_and_safety_off());
plane.quadplane.set_armed(hal.util->get_soft_armed());
#endif
}

Expand Down

0 comments on commit 4f327e4

Please sign in to comment.