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::NmeaGsvPayload Struct Reference

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

#include <nmea.hpp>

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

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

NmeaInt num_msgs
 Number of messages in this GSV sequence (for this signal ID)
 
NmeaInt msg_num
 Message number in sequence (1...num_msgs)
 
NmeaInt tot_num_sat
 Number of sat/sig info in the whole sequence of GSV messages.
 
std::array< NmeaAzEl, 4 > azels
 Satellite positions, valid ones are 0..(num_sats-1)
 
int num_azels = 0
 Number of valid satellite positions (the first n of azels[])
 
std::array< NmeaCno, 4 > cnos
 Signal levels, valid ones are 0..(num_sats-1)
 
int num_cnos = 0
 Number of valid signal levels (the first n of azels[])
 
NmeaSystemId system
 System ID.
 
NmeaSignalId signal
 Signal 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 = "GSV"
 Formatter.
 

Detailed Description

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

Definition at line 675 of file nmea.hpp.

Member Function Documentation

◆ SetFromMsg()

bool fpsdk::common::parser::nmea::NmeaGsvPayload::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

◆ num_msgs

NmeaInt fpsdk::common::parser::nmea::NmeaGsvPayload::num_msgs

Number of messages in this GSV sequence (for this signal ID)

Definition at line 677 of file nmea.hpp.

◆ msg_num

NmeaInt fpsdk::common::parser::nmea::NmeaGsvPayload::msg_num

Message number in sequence (1...num_msgs)

Definition at line 678 of file nmea.hpp.

◆ tot_num_sat

NmeaInt fpsdk::common::parser::nmea::NmeaGsvPayload::tot_num_sat

Number of sat/sig info in the whole sequence of GSV messages.

Definition at line 679 of file nmea.hpp.

◆ azels

std::array<NmeaAzEl, 4> fpsdk::common::parser::nmea::NmeaGsvPayload::azels

Satellite positions, valid ones are 0..(num_sats-1)

Definition at line 680 of file nmea.hpp.

◆ num_azels

int fpsdk::common::parser::nmea::NmeaGsvPayload::num_azels = 0

Number of valid satellite positions (the first n of azels[])

Definition at line 681 of file nmea.hpp.

◆ cnos

std::array<NmeaCno, 4> fpsdk::common::parser::nmea::NmeaGsvPayload::cnos

Signal levels, valid ones are 0..(num_sats-1)

Definition at line 682 of file nmea.hpp.

◆ num_cnos

int fpsdk::common::parser::nmea::NmeaGsvPayload::num_cnos = 0

Number of valid signal levels (the first n of azels[])

Definition at line 683 of file nmea.hpp.

◆ system

NmeaSystemId fpsdk::common::parser::nmea::NmeaGsvPayload::system

System ID.

Definition at line 684 of file nmea.hpp.

◆ signal

NmeaSignalId fpsdk::common::parser::nmea::NmeaGsvPayload::signal

Signal ID.

Definition at line 685 of file nmea.hpp.

◆ FORMATTER

const char* fpsdk::common::parser::nmea::NmeaGsvPayload::FORMATTER = "GSV"
staticconstexpr

Formatter.

Definition at line 698 of file nmea.hpp.


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