mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Ref T410, show number of SB4 packets received under simulator/information
This commit is contained in:
@@ -696,6 +696,10 @@ namespace BlackSimPlugin
|
||||
{
|
||||
this->physicallyInitAITerrainProbes(position, 2);
|
||||
}
|
||||
|
||||
// SB4 offsets
|
||||
m_simulatorInternals.setValue(QStringLiteral("fsx/sb4"), boolToEnabledDisabled(m_useSbOffsets));
|
||||
m_simulatorInternals.setValue(QStringLiteral("fsx/sb4packets"), m_useSbOffsets ? QString::number(m_sbDataReceived) : QStringLiteral("disabled"));
|
||||
}
|
||||
|
||||
m_ownAircraftUpdate++; // with 50updates/sec long enough even for 32bit
|
||||
@@ -2242,6 +2246,12 @@ namespace BlackSimPlugin
|
||||
}
|
||||
}
|
||||
|
||||
void CSimulatorFsxCommon::onOwnModelChanged(const CAircraftModel &newModel)
|
||||
{
|
||||
m_sbDataReceived = 0;
|
||||
CSimulatorFsCommon::onOwnModelChanged(newModel);
|
||||
}
|
||||
|
||||
QString CSimulatorFsxCommon::fsxPositionToString(const SIMCONNECT_DATA_INITPOSITION &position)
|
||||
{
|
||||
static const QString positionStr("Lat: %1deg lng: %2deg alt: %3ft pitch: %4deg bank: %5deg hdg: %6deg airspeed: %7kts onGround: %8");
|
||||
|
||||
Reference in New Issue
Block a user