mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Aircraft ICAO code of own model is wrong
Although the reverse lookup of a model is correct, it's aircraft ICAO code is wrong Issues found * in the driver the ICAO code is permanently overridden -> commented out * there are two contexts, own aircraft and simulator, but only one uses reverse lookup -> now both * using Qt::QueuedConnection for context -> GUI
This commit is contained in:
@@ -228,8 +228,9 @@ namespace BlackSimPlugin
|
||||
situation.setBank({ m_xplaneData.rollDeg, CAngleUnit::deg() });
|
||||
situation.setGroundSpeed({ m_xplaneData.groundspeedMs, CSpeedUnit::m_s() });
|
||||
|
||||
// updates
|
||||
updateOwnIcaoCodes(m_xplaneData.aircraftIcaoCode, CAirlineIcaoCode());
|
||||
// Updates
|
||||
// Do not update ICAO codes, as this overrides reverse lookups
|
||||
// updateOwnIcaoCodes(m_xplaneData.aircraftIcaoCode, CAirlineIcaoCode());
|
||||
updateOwnSituation(situation);
|
||||
|
||||
// defaults
|
||||
@@ -276,7 +277,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
if (isConnected())
|
||||
{
|
||||
m_serviceProxy->getAircraftModelPathAsync(&m_xplaneData.aircraftModelPath);
|
||||
m_serviceProxy->getAircraftModelPathAsync(&m_xplaneData.aircraftModelPath); // this is NOT the model string
|
||||
m_serviceProxy->getAircraftIcaoCodeAsync(&m_xplaneData.aircraftIcaoCode);
|
||||
m_serviceProxy->getBeaconLightsOnAsync(&m_xplaneData.beaconLightsOn);
|
||||
m_serviceProxy->getLandingLightsOnAsync(&m_xplaneData.landingLightsOn);
|
||||
|
||||
Reference in New Issue
Block a user