mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Issue #94 Implement $SF packet to toggle visual pilot data sending
Still send a visual pilot data update at the slow rate of every 5 seconds when visual pilot data update is disabled.
This commit is contained in:
@@ -262,7 +262,7 @@ namespace BlackCore::Fsd
|
||||
void sendDeleteAtc();
|
||||
void sendPilotDataUpdate();
|
||||
void sendInterimPilotDataUpdate();
|
||||
void sendVisualPilotDataUpdate();
|
||||
void sendVisualPilotDataUpdate(bool slowUpdate = false);
|
||||
void sendAtcDataUpdate(double latitude, double longitude);
|
||||
void sendPing(const QString &receiver);
|
||||
//
|
||||
@@ -366,6 +366,7 @@ namespace BlackCore::Fsd
|
||||
void handleTextMessage(const QStringList &tokens);
|
||||
void handlePilotDataUpdate(const QStringList &tokens);
|
||||
void handleVisualPilotDataUpdate(const QStringList &tokens);
|
||||
void handleVisualPilotDataToggle(const QStringList &tokens);
|
||||
void handleEuroscopeSimData(const QStringList &tokens);
|
||||
void handlePing(const QStringList &tokens);
|
||||
void handlePong(const QStringList &tokens);
|
||||
@@ -568,6 +569,7 @@ namespace BlackCore::Fsd
|
||||
static int constexpr c_updateVisualPositionIntervalMsec = 200; //!< interval for the VATSIM visual position updates (send our position and 6DOF velocity)
|
||||
static int constexpr c_sendFsdMsgIntervalMsec = 10; //!< interval for FSD send messages
|
||||
bool m_stoppedSendingVisualPositions = false; //!< for when velocity drops to zero
|
||||
bool m_serverWantsVisualPositions = false; //!< there are interested clients in range
|
||||
};
|
||||
} // ns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user