Enroute Flight Navigation
A navigation app for VFR pilots
Flightlog::TrackPoint Struct Reference

A single point along a recorded flight track. More...

#include <TrackPoint.h>

Public Member Functions

auto isValid () const -> bool
 Check if this track point has valid data.

Public Attributes

QGeoCoordinate coordinate
 Geographic position (latitude, longitude, and GPS altitude in meters MSL).
double pressureAltitude {std::numeric_limits<double>::quiet_NaN()}
 Pressure altitude in meters, or NaN if unknown.
QDateTime timestamp
 UTC timestamp of this fix.

Detailed Description

A single point along a recorded flight track.

Stores position, altitude, and timestamp for one GPS fix. GPS altitude is stored in QGeoCoordinate::altitude(). Designed to be lightweight for storing thousands of points per flight.

Definition at line 34 of file TrackPoint.h.

Member Function Documentation

◆ isValid()

auto Flightlog::TrackPoint::isValid ( ) const -> bool
inlinenodiscard

Check if this track point has valid data.

Returns
True if both coordinate and timestamp are valid

Definition at line 49 of file TrackPoint.h.


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