mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Ref T275, new function to estimate ground elevation and some provider functions
* added "averageElevationOfNonMovingAircraft". Idea: aircraft in the vicinity not moving or on ground likely have the same airport elevation * added "isWithinRange" * added "latestRemoteAircraftSituations" / "remoteAircraftSituation" in provider
This commit is contained in:
@@ -69,7 +69,7 @@ namespace BlackMisc
|
||||
//! Extrapolate ground flag into the future
|
||||
int extrapolateGroundFlag();
|
||||
|
||||
//! Extrapolates elevation into front element from 2nd and 3rd element
|
||||
//! Extrapolates elevation into front (first) element from 2nd and 3rd element
|
||||
//! \sa CAircraftSituation::extrapolateElevation
|
||||
//! \pre the list must be sorted latest first and containt at least 3 elements
|
||||
bool extrapolateElevation(const CAircraftSituationChange &change);
|
||||
@@ -190,7 +190,10 @@ namespace BlackMisc
|
||||
|
||||
//! Transfer elevations forward from older to newer
|
||||
//! \pre requires a list which is sorted "latest first"
|
||||
int transferElevationForward(const PhysicalQuantities::CLength radius = Geo::CElevationPlane::singlePointRadius());
|
||||
int transferElevationForward(const PhysicalQuantities::CLength &radius = Geo::CElevationPlane::singlePointRadius());
|
||||
|
||||
//! Average elevation for "nearby" aircraft "not moving" and having an elevation
|
||||
Geo::CElevationPlane averageElevationOfNonMovingAircraft(const CAircraftSituation &reference, const PhysicalQuantities::CLength &range, int minValues = 1) const;
|
||||
};
|
||||
|
||||
//! Situation per callsign
|
||||
|
||||
Reference in New Issue
Block a user