[FSD] Add slowfast and stopped packets for Velocity

This commit is contained in:
Mat Sutcliffe
2022-02-16 19:49:50 +00:00
parent edc175d133
commit f945f296c8
9 changed files with 392 additions and 6 deletions

View File

@@ -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();
};