mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 22:29:13 +08:00
Ref T275, ctor and option to check if gnd elevation "is better"
This commit is contained in:
@@ -114,15 +114,16 @@ namespace BlackMisc
|
||||
//! Where did we get elevation from?
|
||||
enum GndElevationInfo
|
||||
{
|
||||
// best info (most accurate) last
|
||||
NoElevationInfo,
|
||||
TransferredElevation, //!< transferred from nearby situation
|
||||
Interpolated, //!< interpolated between 2 elevations
|
||||
Test, //!< unit test
|
||||
SituationChange, //!< from BlackMisc::Aviation::CAircraftSituationChange
|
||||
Extrapolated, //!< extrapolated ("guessing")
|
||||
Average, //!< average value of "nearby" situation CAircraftSituationList::averageElevationOfNonMovingAircraft
|
||||
FromProvider, //!< from BlackMisc::Simulation::ISimulationEnvironmentProvider
|
||||
Interpolated, //!< interpolated between 2 elevations
|
||||
TransferredElevation, //!< transferred from nearby situation
|
||||
FromCache, //!< from cache
|
||||
SituationChange, //!< from BlackMisc::Aviation::CAircraftSituationChange
|
||||
Test //!< unit test
|
||||
FromProvider //!< from BlackMisc::Simulation::ISimulationEnvironmentProvider
|
||||
};
|
||||
|
||||
//! Default constructor.
|
||||
@@ -172,6 +173,9 @@ namespace BlackMisc
|
||||
//! Null situation
|
||||
virtual bool isNull() const override;
|
||||
|
||||
//! Is better info (more accurate)?
|
||||
bool isBetterInfo(GndElevationInfo info) const;
|
||||
|
||||
//! Equal pitch, bank heading
|
||||
//! \sa Geo::ICoordinateGeodetic::equalNormalVectorDouble
|
||||
bool equalPbh(const CAircraftSituation &other) const;
|
||||
|
||||
Reference in New Issue
Block a user