Commit 26ee7f89 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #5495 from DonLakeFlyer/TakeoffFix

Correct hiding of heading on TAKEOFF command
parents f9fb25e2 1c29cbfd
......@@ -460,7 +460,7 @@ void SimpleMissionItem::_rebuildNaNFacts(void)
if (!firmwareVehicle) {
firmwareVehicle = _vehicle;
}
bool hideWaypointHeading = (command == MAV_CMD_NAV_WAYPOINT) && (i == 4) && firmwareVehicle->firmwarePlugin()->vehicleYawsToNextWaypointInMission(firmwareVehicle);
bool hideWaypointHeading = (command == MAV_CMD_NAV_WAYPOINT || command == MAV_CMD_NAV_TAKEOFF) && (i == 4) && firmwareVehicle->firmwarePlugin()->vehicleYawsToNextWaypointInMission(firmwareVehicle);
if (hideWaypointHeading) {
continue;
}
......
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