11static constexpr size_t NMEA_MAX_LINE = 96;
25static constexpr uint8_t GPS_FIELD_COUNT = 9;
33#ifdef USE_GPS_GEOID_SEPARATION
40#ifdef USE_GPS_MILLISECOND
62 float hdop()
const {
return static_cast<float>(this->
hdop_e2 / 1e2); }
63#ifdef USE_GPS_GEOID_SEPARATION
bool parse_nmea_sentence(char *line, size_t len, GPSData &data)
Parse one NMEA line of len bytes, which is changed in place; the sentence starts at the last '$'.
GPSField
Bits of GPSData::updated and GPSData::valid.
@ GPS_FIELD_GEOID_SEPARATION
Values from GGA and RMC sentences as scaled integers; a name ending in eN is the value times 10^N.
int32_t latitude_e7
degrees, north positive
float geoid_separation() const
int32_t geoid_separation_e3
meters from the WGS84 ellipsoid up to mean sea level
uint16_t millisecond
of the time; 0 when the time has no fraction
int32_t altitude_e3
meters above mean sea level
int32_t longitude_e7
degrees, east positive
float speed_knots() const
uint16_t valid
GPSField bits set by any sentence so far.
uint16_t updated
GPSField bits set by the last sentence.
bool has(GPSField field) const
bool is_updated(GPSField field) const
uint16_t course_e2
degrees from true north