mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 05:05:38 +08:00
Add height AGL and nose gear angle in VisualPilotDataUpdate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user