mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T268, set P3D elevation request altitude if value is NULL
This commit is contained in:
@@ -94,9 +94,10 @@ namespace BlackSimPlugin
|
||||
if (!this->isConnected()) { return false; }
|
||||
|
||||
Q_ASSERT_X(CThreadUtils::isCurrentThreadObjectThread(this), Q_FUNC_INFO, "thread");
|
||||
const bool hasHeight = reference.hasMSLGeodeticHeight();
|
||||
const double latDeg = reference.latitude().value(CAngleUnit::deg());
|
||||
const double lngDeg = reference.longitude().value(CAngleUnit::deg());
|
||||
const double maxAltFt = reference.geodeticHeight().value(CLengthUnit::ft());
|
||||
const double maxAltFt = hasHeight ? reference.geodeticHeight().value(CLengthUnit::ft()) : 50000;
|
||||
const DWORD dwGridWidth = 1.0;
|
||||
const DWORD dwGridHeight = 1.0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user