Browse Source

Merge pull request #8777 from DonLakeFlyer/VTOLTakeoff

VTOL Takeoff should be considered a transition to FW
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
55c2c50c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/MissionManager/MissionController.cc

6
src/MissionManager/MissionController.cc

@ -1548,12 +1548,10 @@ void MissionController::_recalcMissionFlightStatus() @@ -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;

Loading…
Cancel
Save