Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransectStyleComplexItem.cc: Fix bug generating empty surveys when no terrain data #10678

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/MissionManager/TransectStyleComplexItem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,14 @@ void TransectStyleComplexItem::_rebuildTransects(void)
return;
case QGroundControlQmlGlobal::AltitudeModeRelative:
case QGroundControlQmlGlobal::AltitudeModeAbsolute:
// Not following terrain so we can build the flight path now
case QGroundControlQmlGlobal::AltitudeModeTerrainFrame:
// Terrain height not needed to calculate path, as TerrainFrame specifies a fixed altitude over terrain, doesn't need to know the actual terrain height
// so vehicle is responsible for having or not this altitude calculation, so we can build the flight path right away.
_buildFlightPathCoordInfoFromTransects();
break;
case QGroundControlQmlGlobal::AltitudeModeCalcAboveTerrain:
case QGroundControlQmlGlobal::AltitudeModeTerrainFrame:
// Query the terrain data. Once available flight path will be calculated
// Query the terrain data. Once available flight path will be calculated, as on this mode QGC actually calculates the individual altitude for each waypoint
// having into account terrain data.
_queryTransectsPathHeightInfo();
break;
}
Expand Down