|
Enroute Flight Navigation
A navigation app for VFR pilots
|
Geographic position. More...
#include <PositionInfo.h>
Public Member Functions | |
| PositionInfo ()=default | |
| Default Constructor. | |
| PositionInfo (const QGeoPositionInfo &info, const QString &source) | |
| Constructor. | |
| Q_INVOKABLE QGeoCoordinate | coordinate () const |
| Coordinate. | |
| Q_INVOKABLE Units::Speed | groundSpeed () const |
| Ground speed. | |
| Q_INVOKABLE bool | isValid () const |
| Validity. | |
| Q_INVOKABLE Units::Distance | positionErrorEstimate () const |
| Position error estimate. | |
| Q_INVOKABLE QString | source () const |
| Name of source, as set in the constructor. | |
| Q_INVOKABLE Units::Distance | terrainElevationAMSL () |
| Elevation of terrain at a given coordinate, above sea level. | |
| Q_INVOKABLE QDateTime | timestamp () const |
| Timestamp. | |
| Q_INVOKABLE QString | timestampString () const |
| Timestamp string. | |
| Q_INVOKABLE Units::Distance | trueAltitudeAGL () |
| True Altitude above ground level. | |
| Q_INVOKABLE Units::Distance | trueAltitudeAMSL () const |
| True Altitude above main sea level. | |
| Q_INVOKABLE Units::Distance | trueAltitudeErrorEstimate () const |
| True altitude error estimate. | |
| Q_INVOKABLE Units::Angle | trueTrack () const |
| True track. | |
| Q_INVOKABLE Units::Angle | trueTrackErrorEstimate () const |
| True track error estimate. | |
| Q_INVOKABLE Units::Angle | variation () const |
| Magnetic variation. | |
| Q_INVOKABLE Units::Speed | verticalSpeed () const |
| Vertical speed. | |
| Q_INVOKABLE bool | operator== (const Positioning::PositionInfo &rhs) const |
| Comparison: equal. | |
| operator QGeoPositionInfo () const | |
| Conversion. | |
Static Public Attributes | |
| static constexpr auto | lifetime = 20min |
| Liftetime of geographic positioning information. | |
Geographic position.
This class is a thin wrapper around QGeoPositionInfo. It exports the data from QGeoPositionInfo in a way that can be read from QML. In addition to QGeoPositionInfo, the class also contains information about the pressure altitude.
Definition at line 44 of file PositionInfo.h.
|
explicit |
Constructor.
| info | QGeoPositionInfo this is copied into this class |
| source | Name of the source that generated this instance |
|
inlinenodiscard |
Coordinate.
If the coordinate contains altitude information, this refers to true altitude.
Definition at line 68 of file PositionInfo.h.
|
nodiscard |
Ground speed.
|
nodiscard |
Validity.
|
inline |
Comparison: equal.
| rhs | Right hand side of the comparison |
Definition at line 173 of file PositionInfo.h.
|
nodiscard |
Position error estimate.
|
inlinenodiscard |
Name of source, as set in the constructor.
Definition at line 96 of file PositionInfo.h.
|
nodiscard |
Elevation of terrain at a given coordinate, above sea level.
|
inlinenodiscard |
|
inlinenodiscard |
Timestamp string.
Definition at line 118 of file PositionInfo.h.
|
nodiscard |
True Altitude above ground level.
|
nodiscard |
True Altitude above main sea level.
|
nodiscard |
True altitude error estimate.
|
nodiscard |
True track.
|
nodiscard |
True track error estimate.
|
nodiscard |
Magnetic variation.
|
nodiscard |
Vertical speed.
|
staticconstexpr |
Liftetime of geographic positioning information.
Geographic position information is considered valid only for this amount of time after it has been received.
Definition at line 192 of file PositionInfo.h.