Enroute Flight Navigation
A navigation app for VFR pilots
|
Cache relating geometric and barometric altitude information. More...
#include <BaroCache.h>
Public Member Functions | |
BaroCache (QObject *parent=nullptr) | |
Standard constructor. | |
Q_INVOKABLE Units::Distance | estimatedPressureAltitude (Units::Distance geometricAltitude) |
Estimate pressure altitude for a given geometric altitude. |
Cache relating geometric and barometric altitude information.
This class collects geometric and barometric altitude information of the own aircraft. If sufficient data is available, it uses this data to estimate geometric altitudes from barometric altitudes and vice versa. This functionality is used, for instance, to estimate the geometric altitude of airspace boundaries (which are defined as geometric altitudes).
For clarity: We use the term "barometric altitude" to refer to the baromatric altitude over the standard level. This is the altitude shown by an aircraft altimeter when set to 1013.2 hPa.
Definition at line 46 of file BaroCache.h.
Navigation::BaroCache::BaroCache | ( | QObject * | parent = nullptr | ) |
Standard constructor.
parent | The standard QObject parent pointer |
|
nodiscard |
Estimate pressure altitude for a given geometric altitude.
This method queries the cache, in order to estimate the pressure altitude for a given geometric altitude. It will return an invalid Distance unless there exists a cache entry whose geometric altitude is within +/- 500ft from the geometricAltitude parameter.
Remember: pressure altitude is the barometric altitude above the 1013.2 hPa pressure surface
geometricAltitude | Geometric altitude whose associated pressure altitude is to be estimated |