From 22f17bec442531155b64e771f484a3d9068f9bad Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 18 Nov 2018 19:43:22 +0100 Subject: [PATCH] Ref T437, renamed SB4 to SB3 (as the extension was already available in SB3) --- src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp | 6 +++--- src/plugins/simulator/fsxcommon/simulatorfsxcommon.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp index 082cfe1ab..f74c8f8ed 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp +++ b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp @@ -697,9 +697,9 @@ namespace BlackSimPlugin this->physicallyInitAITerrainProbes(position, 2); // init probe } - // 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")); + // SB3 offsets + m_simulatorInternals.setValue(QStringLiteral("fsx/sb3"), boolToEnabledDisabled(m_useSbOffsets)); + m_simulatorInternals.setValue(QStringLiteral("fsx/sb3packets"), m_useSbOffsets ? QString::number(m_sbDataReceived) : QStringLiteral("disabled")); } m_ownAircraftUpdateCycles++; // with 50updates/sec long enough even for 32bit diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h index 8ff8e9ddd..7fea9133b 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h +++ b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h @@ -180,7 +180,7 @@ namespace BlackSimPlugin //! Number of received SB4 packets //! \remark if this is increasing, SB4 is supported - int receivedSB4Packets() const { return m_sbDataReceived; } + int receivedSBPackets() const { return m_sbDataReceived; } //! Request for sim data (request in range of sim data)? static bool isRequestForSimObjAircraft(DWORD requestId) { return requestId >= RequestSimObjAircraftStart && requestId <= RequestSimObjAircraftRangeEnd; } @@ -561,7 +561,7 @@ namespace BlackSimPlugin bool m_traceSendId = false; //!< trace the send ids, meant for debugging qint64 m_traceAutoUntilTs = -1; //!< allows to automatically trace for some time qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter) - int m_sbDataReceived = 0; //!< SB4 area data received + int m_sbDataReceived = 0; //!< SB3 area data received int m_syncTimeDeferredCounter = 0; //!< Set when synchronized, used to wait some time int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set int m_ownAircraftUpdateCycles = 0; //!< own aircraft update