Plane: Mode: ensure flight stage is correct on successful mode change

This commit is contained in:
Iampete1 2023-12-10 17:42:03 +00:00 committed by Andrew Tridgell
parent 21a9f8e3a2
commit 740b04aed3
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ bool Mode::enter()
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "In landing sequence: mission reset"); GCS_SEND_TEXT(MAV_SEVERITY_INFO, "In landing sequence: mission reset");
plane.mission.reset(); plane.mission.reset();
} }
// Make sure the flight stage is correct for the new mode
plane.update_flight_stage();
} }
return enter_result; return enter_result;