Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::parser::nmea::NmeaGsaPayload Struct Reference

NMEA-Gx-GSA message payload (NMEA 4.11 only!) More...

#include <nmea.hpp>

Inheritance diagram for fpsdk::common::parser::nmea::NmeaGsaPayload:
Collaboration diagram for fpsdk::common::parser::nmea::NmeaGsaPayload:

Public Member Functions

bool SetFromMsg (const uint8_t *msg, const std::size_t msg_size)
 Set data from sentence.
 
- Public Member Functions inherited from fpsdk::common::parser::nmea::NmeaPayload
virtual ~NmeaPayload ()=default
 Virtual dtor for polymorphism.
 

Public Attributes

NmeaOpModeGsa opmode = NmeaOpModeGsa::UNSPECIFIED
 Operation mode.
 
NmeaNavModeGsa navmode = NmeaNavModeGsa::UNSPECIFIED
 Nav mode.
 
std::array< NmeaSat, 12 > sats
 Satellites, valid ones are 0..(num_sats-1)
 
int num_sats = 0
 Number of valid sats (the first n of sats[])
 
NmeaFloat pdop
 PDOP.
 
NmeaFloat hdop
 HDOP.
 
NmeaFloat vdop
 VDOP.
 
NmeaSystemId system = NmeaSystemId::UNSPECIFIED
 System ID.
 
- Public Attributes inherited from fpsdk::common::parser::nmea::NmeaPayload
NmeaTalkerId talker = NmeaTalkerId::UNSPECIFIED
 Talker.
 
bool valid_ = false
 Payload successfully decoded (true), or not (yet) decoded (false)
 

Static Public Attributes

static constexpr const char * FORMATTER = "GSA"
 Formatter.
 

Detailed Description

NMEA-Gx-GSA message payload (NMEA 4.11 only!)

Definition at line 647 of file nmea.hpp.

Member Function Documentation

◆ SetFromMsg()

bool fpsdk::common::parser::nmea::NmeaGsaPayload::SetFromMsg ( const uint8_t * msg,
const std::size_t msg_size )

Set data from sentence.

Parameters
[in]msgPointer to the NMEA message
[in]msg_sizeSize of the NMEA message (>= 11)
Returns
true if sentence payload was correct and all data could be extracted (fields are now valid), or false otherwise (fields are now invalid)

Member Data Documentation

◆ opmode

NmeaOpModeGsa fpsdk::common::parser::nmea::NmeaGsaPayload::opmode = NmeaOpModeGsa::UNSPECIFIED

Operation mode.

Definition at line 649 of file nmea.hpp.

◆ navmode

NmeaNavModeGsa fpsdk::common::parser::nmea::NmeaGsaPayload::navmode = NmeaNavModeGsa::UNSPECIFIED

Nav mode.

Definition at line 650 of file nmea.hpp.

◆ sats

std::array<NmeaSat, 12> fpsdk::common::parser::nmea::NmeaGsaPayload::sats

Satellites, valid ones are 0..(num_sats-1)

Definition at line 651 of file nmea.hpp.

◆ num_sats

int fpsdk::common::parser::nmea::NmeaGsaPayload::num_sats = 0

Number of valid sats (the first n of sats[])

Definition at line 652 of file nmea.hpp.

◆ pdop

NmeaFloat fpsdk::common::parser::nmea::NmeaGsaPayload::pdop

PDOP.

Definition at line 653 of file nmea.hpp.

◆ hdop

NmeaFloat fpsdk::common::parser::nmea::NmeaGsaPayload::hdop

HDOP.

Definition at line 654 of file nmea.hpp.

◆ vdop

NmeaFloat fpsdk::common::parser::nmea::NmeaGsaPayload::vdop

VDOP.

Definition at line 655 of file nmea.hpp.

◆ system

NmeaSystemId fpsdk::common::parser::nmea::NmeaGsaPayload::system = NmeaSystemId::UNSPECIFIED

System ID.

Definition at line 656 of file nmea.hpp.

◆ FORMATTER

const char* fpsdk::common::parser::nmea::NmeaGsaPayload::FORMATTER = "GSA"
staticconstexpr

Formatter.

Definition at line 669 of file nmea.hpp.


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