Skip to content

Commit

Permalink
Plane: mode autoland: ensure flight stage is normal on mode enter
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Jan 14, 2025
1 parent e30e74f commit 19a63b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ArduPlane/mode_autoland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ bool ModeAutoLand::_enter()

plane.prev_WP_loc = plane.current_loc;

// In flight stage normal for approach
plane.set_flight_stage(AP_FixedWing::FlightStage::NORMAL);

const Location &home = ahrs.get_home();

if (plane.landing.get_type() == AP_Landing::TYPE_DEEPSTALL) {
Expand Down

0 comments on commit 19a63b2

Please sign in to comment.