Copter: reset land_repo_active flag in Auto mode

This commit is contained in:
Tatsuya Yamaguchi 2021-09-28 13:15:46 +09:00 committed by Randy Mackay
parent 5ec82851d0
commit e9115601dd
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ bool ModeAuto::init(bool ignore_checks)
// clear guided limits
copter.mode_guided.limit_clear();
// reset flag indicating if pilot has applied roll or pitch inputs during landing
copter.ap.land_repo_active = false;
#if PRECISION_LANDING == ENABLED
// initialise precland state machine
copter.precland_statemachine.init();