mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 22:55:41 +08:00
Ref T231, Ref T236, Ref T238 improvements based on Unit test
* check for a correct callsign (assert) * set callsign if missing (fallback) * resetLastInterpolation - null last inperpolation
This commit is contained in:
@@ -85,6 +85,9 @@ namespace BlackMisc
|
||||
//! Default constructor.
|
||||
CAircraftSituation();
|
||||
|
||||
//! Constructor with callsign
|
||||
CAircraftSituation(const CCallsign &correspondingCallsign);
|
||||
|
||||
//! Comprehensive constructor
|
||||
CAircraftSituation(const Geo::CCoordinateGeodetic &position,
|
||||
const CHeading &heading = {},
|
||||
@@ -117,6 +120,12 @@ namespace BlackMisc
|
||||
//! Position null?
|
||||
bool isPositionNull() const { return m_position.isNull(); }
|
||||
|
||||
//! Null situation
|
||||
virtual bool isNull() const override;
|
||||
|
||||
//! Set to null
|
||||
void setNull();
|
||||
|
||||
//! Set position
|
||||
void setPosition(const Geo::CCoordinateGeodetic &position) { m_position = position; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user