mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 20:55:42 +08:00
[FSD] Add slowfast and stopped packets for Velocity
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
|
||||
namespace BlackCore::Fsd
|
||||
{
|
||||
class VisualPilotDataPeriodic;
|
||||
class VisualPilotDataStopped;
|
||||
|
||||
//! Pilot data update broadcasted to pilots in range every 0.2 seconds.
|
||||
class BLACKCORE_EXPORT VisualPilotDataUpdate : public MessageBase
|
||||
{
|
||||
@@ -34,6 +37,12 @@ namespace BlackCore::Fsd
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "^"; }
|
||||
|
||||
//! Return a periodic update with the same values
|
||||
VisualPilotDataPeriodic toPeriodic() const;
|
||||
|
||||
//! Return a stopped update with the same values
|
||||
VisualPilotDataStopped toStopped() const;
|
||||
|
||||
//! Properties
|
||||
//! @{
|
||||
double m_latitude = 0.0;
|
||||
@@ -52,7 +61,7 @@ namespace BlackCore::Fsd
|
||||
double m_noseGearAngle = 0.0;
|
||||
//! @}
|
||||
|
||||
private:
|
||||
//private: // not private: used in CFSDClient::handleVisualPilotDataUpdate
|
||||
VisualPilotDataUpdate();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user