Browse Source

Copter: mode_auto's landing_gear_deploy method defers to mode_rtl

Since we defer our rtl_run behaviour to the RTL flightmode, it should
also specify the landing gear behaviour
mission-4.1.18
Peter Barker 7 years ago committed by Francisco Ferreira
parent
commit
4c7491a05b
  1. 10
      ArduCopter/mode_auto.cpp

10
ArduCopter/mode_auto.cpp

@ -417,15 +417,7 @@ bool Copter::ModeAuto::landing_gear_should_be_deployed() const @@ -417,15 +417,7 @@ bool Copter::ModeAuto::landing_gear_should_be_deployed() const
case Auto_Land:
return true;
case Auto_RTL:
switch(_copter.mode_rtl.state()) {
case RTL_LoiterAtHome:
case RTL_Land:
case RTL_FinalDescent:
return true;
default:
return false;
}
return false;
return _copter.mode_rtl.landing_gear_should_be_deployed();
default:
return false;
}

Loading…
Cancel
Save