![]() |
Fixposition SDK 0.0.0-heads/main-0-gf826859
Collection of c++ libraries and apps for use with Fixposition products on Linux
|
Collector for NMEA-Gx-GSA and NMEA-Gx-GPA. More...
#include <nmea.hpp>
Classes | |
| struct | Sat |
| Satellite info. More... | |
| struct | Sig |
Public Member Functions | |
| bool | AddGsa (const NmeaGsaPayload &gsa) |
| Add NMEA-GN-GSA message to collection. | |
| bool | AddGsv (const NmeaGsvPayload &gsv) |
| Add NMEA-Gx-GSV message to collection. | |
| void | Complete () |
| Complete collection after feeding all GSA and GSV messages. | |
| bool | AddGsaAndGsv (const std::vector< NmeaGsaPayload > &gsas, const std::vector< NmeaGsvPayload > &gsvs) |
| Add NMEA-GN-GSA and NMEA-Gx-GSV messages to collection. | |
Public Attributes | |
| std::vector< Sat > | sats_ |
| Collected satellite info. | |
| std::vector< Sig > | sigs_ |
| Collected signal info. | |
Collector for NMEA-Gx-GSA and NMEA-Gx-GPA.
Note that the user is responsible to call Complete() on every end of epoch. This collector by itself has no means to determine start or end of epoch. If Complete() is not called, the Add...() methods refuse to collect more data after a certain threshold (see MAX_COLLECT below) and fail. This is to prevent memory growing forever if Complete() is not called appropriately.
| bool fpsdk::common::parser::nmea::NmeaCollectGsaGsv::AddGsa | ( | const NmeaGsaPayload & | gsa | ) |
Add NMEA-GN-GSA message to collection.
These must be provided in order and completely, and before the GSV messages.
| [in] | gsa | Decoded message payload |
| bool fpsdk::common::parser::nmea::NmeaCollectGsaGsv::AddGsv | ( | const NmeaGsvPayload & | gsv | ) |
Add NMEA-Gx-GSV message to collection.
These must be provided in order and completely, and after the GSA messages.
| [in] | gsv | Decoded message payload |
| bool fpsdk::common::parser::nmea::NmeaCollectGsaGsv::AddGsaAndGsv | ( | const std::vector< NmeaGsaPayload > & | gsas, |
| const std::vector< NmeaGsvPayload > & | gsvs ) |
Add NMEA-GN-GSA and NMEA-Gx-GSV messages to collection.
Does all of AddGsa(), AddGsv() and Complete() in one call.
| [in] | gsas | All decoded message payloads, complete and in order |
| [in] | gsvs | All decoded message payloads, complete and in order |
| std::vector<Sat> fpsdk::common::parser::nmea::NmeaCollectGsaGsv::sats_ |
| std::vector<Sig> fpsdk::common::parser::nmea::NmeaCollectGsaGsv::sigs_ |