Enroute Flight Navigation
A navigation app for VFR pilots
Navigation::BaroCache Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ BaroCache()

Navigation::BaroCache::BaroCache ( QObject * parent = nullptr)

Standard constructor.

Parameters
parentThe standard QObject parent pointer

Member Function Documentation

◆ estimatedPressureAltitude()

Q_INVOKABLE Units::Distance Navigation::BaroCache::estimatedPressureAltitude ( Units::Distance geometricAltitude)
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

Parameters
geometricAltitudeGeometric altitude whose associated pressure altitude is to be estimated
Returns
Estimated pressure altitude

The documentation for this class was generated from the following file: