Skip to content

Commit

Permalink
Plane: only disable fences when in landing phase
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Jun 25, 2024
1 parent 61491e0 commit f059785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduPlane/fence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void Plane::fence_check()
bool is_in_landing = plane.flight_stage == AP_FixedWing::FlightStage::LAND
#if HAL_QUADPLANE_ENABLED
|| control_mode->mode_number() == Mode::Number::QLAND
|| control_mode->mode_number() == Mode::Number::QRTL
|| quadplane.in_vtol_land_descent()
#endif
|| (plane.is_land_command(mission_id) && plane.mission.state() == AP_Mission::MISSION_RUNNING);

Expand Down

0 comments on commit f059785

Please sign in to comment.