From 88e01e31aa98784583fa6140cbce70f93a56b709 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 15 Oct 2016 13:18:42 -0700 Subject: [PATCH] Fix line back to home for VTOL takeoff --- src/MissionManager/MissionController.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MissionManager/MissionController.cc b/src/MissionManager/MissionController.cc index 1574fb2e8..b6178a6e1 100644 --- a/src/MissionManager/MissionController.cc +++ b/src/MissionManager/MissionController.cc @@ -639,7 +639,8 @@ void MissionController::_recalcWaypointLines(void) // If we still haven't found the first coordinate item and we hit a a takeoff command link back to home if (firstCoordinateItem && item->isSimpleItem() && - qobject_cast(item)->command() == MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF) { + (qobject_cast(item)->command() == MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF || + qobject_cast(item)->command() == MavlinkQmlSingleton::MAV_CMD_NAV_VTOL_TAKEOFF)) { linkBackToHome = true; } -- 2.22.0