mission feasibilty check: fix for VTOL backtransition and land waypoint

Prior this fix VTOL missions get rejected if they have a DO_LAND_START marker, but then do
not end with a LAND waypoint but a VTOL transition and land.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2020-01-28 13:43:37 +01:00 committed by Daniel Agar
parent b14e5568d3
commit 8de675ec88
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ MissionFeasibilityChecker::checkVTOLLanding(const mission_s &mission, bool land_
}
}
if (missionitem.nav_cmd == NAV_CMD_LAND) {
if (missionitem.nav_cmd == NAV_CMD_LAND || missionitem.nav_cmd == NAV_CMD_VTOL_LAND) {
mission_item_s missionitem_previous {};
if (i > 0) {