Plane: reset land_pre_flare on mode change
This commit is contained in:
parent
13c217c060
commit
93185be1ff
@ -342,6 +342,9 @@ void Plane::set_mode(enum FlightMode mode)
|
|||||||
// reset go around command
|
// reset go around command
|
||||||
auto_state.commanded_go_around = false;
|
auto_state.commanded_go_around = false;
|
||||||
|
|
||||||
|
// not in pre-flare
|
||||||
|
auto_state.land_pre_flare = false;
|
||||||
|
|
||||||
// zero locked course
|
// zero locked course
|
||||||
steer_state.locked_course_err = 0;
|
steer_state.locked_course_err = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user