Browse Source

Plane: reset land_pre_flare on mode change

master
Andrew Tridgell 9 years ago
parent
commit
93185be1ff
  1. 3
      ArduPlane/system.cpp

3
ArduPlane/system.cpp

@ -342,6 +342,9 @@ void Plane::set_mode(enum FlightMode mode) @@ -342,6 +342,9 @@ void Plane::set_mode(enum FlightMode mode)
// reset go around command
auto_state.commanded_go_around = false;
// not in pre-flare
auto_state.land_pre_flare = false;
// zero locked course
steer_state.locked_course_err = 0;

Loading…
Cancel
Save