Commit 88e01e31 authored by Don Gagne's avatar Don Gagne

Fix line back to home for VTOL takeoff

parent 19c64921
...@@ -639,7 +639,8 @@ void MissionController::_recalcWaypointLines(void) ...@@ -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 we still haven't found the first coordinate item and we hit a a takeoff command link back to home
if (firstCoordinateItem && if (firstCoordinateItem &&
item->isSimpleItem() && item->isSimpleItem() &&
qobject_cast<SimpleMissionItem*>(item)->command() == MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF) { (qobject_cast<SimpleMissionItem*>(item)->command() == MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF ||
qobject_cast<SimpleMissionItem*>(item)->command() == MavlinkQmlSingleton::MAV_CMD_NAV_VTOL_TAKEOFF)) {
linkBackToHome = true; linkBackToHome = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment