mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Ref T773, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
b0d5b3c6d1
commit
57153d45d7
@@ -107,7 +107,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
QString CAircraftSituationChange::convertToQString(bool i18n) const
|
QString CAircraftSituationChange::convertToQString(bool i18n) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(i18n);
|
Q_UNUSED(i18n)
|
||||||
static const QString null("null");
|
static const QString null("null");
|
||||||
if (this->isNull()) { return null; }
|
if (this->isNull()) { return null; }
|
||||||
return u"CS: '" % this->getCallsign().asString() %
|
return u"CS: '" % this->getCallsign().asString() %
|
||||||
|
|||||||
@@ -512,6 +512,7 @@ namespace XSwiftBus
|
|||||||
double groundElevation = 0.0;
|
double groundElevation = 0.0;
|
||||||
if (getSettings().isTerrainProbeEnabled())
|
if (getSettings().isTerrainProbeEnabled())
|
||||||
{
|
{
|
||||||
|
// we expect elevation in meters
|
||||||
groundElevation = plane->terrainProbe.getElevation(latDeg, lonDeg, plane->position.elevation, requestedCallsign).front();
|
groundElevation = plane->terrainProbe.getElevation(latDeg, lonDeg, plane->position.elevation, requestedCallsign).front();
|
||||||
if (std::isnan(groundElevation)) { groundElevation = 0.0; }
|
if (std::isnan(groundElevation)) { groundElevation = 0.0; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user