Issue #94 Add new class CAircraftVelocity as member of CAircraftSituation

This commit is contained in:
Mat Sutcliffe
2021-10-11 18:15:26 +01:00
parent 8dc206d62b
commit 0faa7ed8fc
10 changed files with 232 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
#include "blackmisc/aviation/altitude.h"
#include "blackmisc/aviation/callsign.h"
#include "blackmisc/aviation/heading.h"
#include "blackmisc/aviation/aircraftvelocity.h"
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/geo/elevationplane.h"
#include "blackmisc/geo/coordinategeodetic.h"
@@ -66,6 +67,7 @@ namespace BlackMisc
IndexOnGroundReliabilityString,
IndexPitch,
IndexPBHInfo,
IndexVelocity,
IndexGroundSpeed,
IndexGroundElevationPlane,
IndexGroundElevationInfo,
@@ -415,6 +417,12 @@ namespace BlackMisc
//! Get PBH info (all together)
QString getPBHInfo() const;
//! Set 6DOF velocity
void setVelocity(const CAircraftVelocity &velocity) { m_velocity = velocity; }
//! Get 6DOF velocity
const CAircraftVelocity &getVelocity() const { return m_velocity; }
//! Get ground speed
const PhysicalQuantities::CSpeed &getGroundSpeed() const { return m_groundSpeed; }
@@ -565,6 +573,7 @@ namespace BlackMisc
PhysicalQuantities::CSpeed m_groundSpeed { 0, nullptr };
PhysicalQuantities::CLength m_cg { 0, nullptr };
PhysicalQuantities::CLength m_sceneryOffset { 0, nullptr };
CAircraftVelocity m_velocity;
bool m_isInterim = false; //!< interim situation?
bool m_isElvInfoTransferred = false; //!< the gnd.elevation has been transferred
int m_onGround = static_cast<int>(CAircraftSituation::OnGroundSituationUnknown);
@@ -590,6 +599,7 @@ namespace BlackMisc
BLACK_METAMEMBER(groundSpeed),
BLACK_METAMEMBER(cg),
BLACK_METAMEMBER(sceneryOffset),
BLACK_METAMEMBER(velocity),
BLACK_METAMEMBER(groundElevationPlane),
BLACK_METAMEMBER(onGround),
BLACK_METAMEMBER(onGroundDetails),