Unverified Commit 55c2c50c authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8777 from DonLakeFlyer/VTOLTakeoff

VTOL Takeoff should be considered a transition to FW
parents 545d995e c928c6ce
...@@ -1548,12 +1548,10 @@ void MissionController::_recalcMissionFlightStatus() ...@@ -1548,12 +1548,10 @@ void MissionController::_recalcMissionFlightStatus()
// Update VTOL state // Update VTOL state
if (simpleItem && _controllerVehicle->vtol()) { if (simpleItem && _controllerVehicle->vtol()) {
switch (simpleItem->command()) { 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; vtolInHover = false;
break; break;
case MAV_CMD_NAV_VTOL_TAKEOFF:
vtolInHover = true;
break;
case MAV_CMD_NAV_LAND: case MAV_CMD_NAV_LAND:
vtolInHover = false; vtolInHover = false;
break; 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