Browse Source

Copter: reset land_repo_active flag in Auto mode

gps-1.3.1
Tatsuya Yamaguchi 3 years ago committed by Randy Mackay
parent
commit
e9115601dd
  1. 3
      ArduCopter/mode_auto.cpp

3
ArduCopter/mode_auto.cpp

@ -50,6 +50,9 @@ bool ModeAuto::init(bool ignore_checks)
// clear guided limits // clear guided limits
copter.mode_guided.limit_clear(); 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 #if PRECISION_LANDING == ENABLED
// initialise precland state machine // initialise precland state machine
copter.precland_statemachine.init(); copter.precland_statemachine.init();

Loading…
Cancel
Save