mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 10:26:03 +08:00
Issue #94 Add new class CAircraftVelocity as member of CAircraftSituation
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user