Add height AGL and nose gear angle in VisualPilotDataUpdate

This commit is contained in:
Mat Sutcliffe
2022-01-13 17:37:52 +00:00
parent bb70bcc79d
commit 6d66066d6a
4 changed files with 27 additions and 14 deletions

View File

@@ -21,9 +21,9 @@ namespace BlackCore::Fsd
{
public:
//! Constructor
VisualPilotDataUpdate(const QString &sender, double latitude, double longitude, double altitudeTrue,
VisualPilotDataUpdate(const QString &sender, double latitude, double longitude, double altitudeTrue, double heightAgl,
double pitch, double bank, double heading, double xVelocity, double yVelocity, double zVelocity,
double pitchRadPerSec, double bankRadPerSec, double headingRadPerSec);
double pitchRadPerSec, double bankRadPerSec, double headingRadPerSec, double noseGearAngle = 0.0);
//! Message converted to tokens
QStringList toTokens() const;
@@ -39,6 +39,7 @@ namespace BlackCore::Fsd
double m_latitude = 0.0;
double m_longitude = 0.0;
double m_altitudeTrue = 0.0;
double m_heightAgl = 0.0;
double m_pitch = 0.0;
double m_bank = 0.0;
double m_heading = 0.0;
@@ -48,6 +49,7 @@ namespace BlackCore::Fsd
double m_pitchRadPerSec = 0.0;
double m_bankRadPerSec = 0.0;
double m_headingRadPerSec = 0.0;
double m_noseGearAngle = 0.0;
//! @}
private:
@@ -60,6 +62,7 @@ namespace BlackCore::Fsd
return qFuzzyCompare(lhs.m_latitude, rhs.m_latitude) &&
qFuzzyCompare(lhs.m_longitude, rhs.m_longitude) &&
qFuzzyCompare(lhs.m_altitudeTrue, rhs.m_altitudeTrue) &&
qFuzzyCompare(lhs.m_heightAgl, rhs.m_heightAgl) &&
qFuzzyCompare(lhs.m_pitch, rhs.m_pitch) &&
qFuzzyCompare(lhs.m_bank, rhs.m_bank) &&
qFuzzyCompare(lhs.m_heading, rhs.m_heading) &&
@@ -68,7 +71,8 @@ namespace BlackCore::Fsd
qFuzzyCompare(lhs.m_zVelocity, rhs.m_zVelocity) &&
qFuzzyCompare(lhs.m_pitchRadPerSec, rhs.m_pitchRadPerSec) &&
qFuzzyCompare(lhs.m_bankRadPerSec, rhs.m_bankRadPerSec) &&
qFuzzyCompare(lhs.m_headingRadPerSec, rhs.m_headingRadPerSec);
qFuzzyCompare(lhs.m_headingRadPerSec, rhs.m_headingRadPerSec) &&
qFuzzyCompare(lhs.m_noseGearAngle, rhs.m_noseGearAngle);
}
//! Not equal to operator