QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSDecodedSatellites Struct Reference

#include <GPSProtocolEvent.h>

Classes

struct  Constellation
 

Public Member Functions

Constellation * ensureConstellation (GPSConstellation constellation)
 
void addSatellite (GPSConstellation constellation, bool used)
 

Public Attributes

bool fullSnapshot = true
 
uint8_t count = 0
 
std::array< Constellation, MAX_CONSTELLATIONS > constellations {}
 

Static Public Attributes

static constexpr uint16_t SAT_INFO_MAX_SATELLITES = 128
 
static constexpr uint8_t MAX_CONSTELLATIONS = 8
 

Detailed Description

Definition at line 33 of file GPSProtocolEvent.h.

Member Function Documentation

◆ addSatellite()

void GPSDecodedSatellites::addSatellite ( GPSConstellation  constellation,
bool  used 
)
inline

Counts one satellite in view of constellation, and in use when used. Dropped when MAX_CONSTELLATIONS other constellations are already present.

Definition at line 64 of file GPSProtocolEvent.h.

References ensureConstellation().

◆ ensureConstellation()

Constellation * GPSDecodedSatellites::ensureConstellation ( GPSConstellation  constellation)
inline

Member Data Documentation

◆ constellations

std::array<Constellation, MAX_CONSTELLATIONS> GPSDecodedSatellites::constellations {}

◆ count

uint8_t GPSDecodedSatellites::count = 0

◆ fullSnapshot

bool GPSDecodedSatellites::fullSnapshot = true

Definition at line 73 of file GPSProtocolEvent.h.

Referenced by GPSDecodedData::SatelliteCounts::update().

◆ MAX_CONSTELLATIONS

constexpr uint8_t GPSDecodedSatellites::MAX_CONSTELLATIONS = 8
staticconstexpr

Definition at line 36 of file GPSProtocolEvent.h.

◆ SAT_INFO_MAX_SATELLITES

constexpr uint16_t GPSDecodedSatellites::SAT_INFO_MAX_SATELLITES = 128
staticconstexpr

Definition at line 35 of file GPSProtocolEvent.h.

Referenced by GPSDecodedData::SatelliteCounts::update().


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