mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T773, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
b0d5b3c6d1
commit
57153d45d7
@@ -512,6 +512,7 @@ namespace XSwiftBus
|
||||
double groundElevation = 0.0;
|
||||
if (getSettings().isTerrainProbeEnabled())
|
||||
{
|
||||
// we expect elevation in meters
|
||||
groundElevation = plane->terrainProbe.getElevation(latDeg, lonDeg, plane->position.elevation, requestedCallsign).front();
|
||||
if (std::isnan(groundElevation)) { groundElevation = 0.0; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user