Plane: Quadaplane: remove RTL navigate incorrect comment and unnedded check

This commit is contained in:
Iampete1 2022-12-23 23:56:36 +00:00 committed by Andrew Tridgell
parent 4a21af22cb
commit da0927b076
1 changed files with 1 additions and 3 deletions

View File

@ -81,9 +81,7 @@ void ModeRTL::update()
void ModeRTL::navigate()
{
#if HAL_QUADPLANE_ENABLED
if ((plane.control_mode->mode_number() != QRTL) && plane.quadplane.available()) {
// QRTL shares this navigate function with RTL
if (plane.quadplane.available()) {
if (plane.quadplane.rtl_mode == QuadPlane::RTL_MODE::VTOL_APPROACH_QRTL) {
// VTOL approach landing
AP_Mission::Mission_Command cmd;