Commit c928c6ce authored by DonLakeFlyer's avatar DonLakeFlyer

VTOL Takeoff should be considered a transition to FW

parent 63cc0014
......@@ -1548,12 +1548,10 @@ void MissionController::_recalcMissionFlightStatus()
// Update VTOL state
if (simpleItem && _controllerVehicle->vtol()) {
switch (simpleItem->command()) {
case MAV_CMD_NAV_TAKEOFF:
case MAV_CMD_NAV_TAKEOFF: // This will do a fixed wing style takeoff
case MAV_CMD_NAV_VTOL_TAKEOFF: // Vehicle goes straight up and then transitions to FW
vtolInHover = false;
break;
case MAV_CMD_NAV_VTOL_TAKEOFF:
vtolInHover = true;
break;
case MAV_CMD_NAV_LAND:
vtolInHover = false;
break;
......
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