|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <GPSDecodedData.h>
Public Member Functions | |
| GPSSatelliteReport | update (const GPSDecodedSatellites &source, uint64_t nowUs) |
| GPSSatelliteReport | update (const GPSDecodedSatelliteUsage &source, uint64_t nowUs) |
| Records a count-only used count. | |
| std::optional< GPSSatelliteReport > | expire (uint64_t nowUs) |
Static Public Attributes | |
| static constexpr std::chrono::milliseconds | FRESHNESS_TIMEOUT {5000} |
The satellite counts GPSDriver reports. Each constellation keeps its latest in-view and used counts, each with its own receipt, until FRESHNESS_TIMEOUT has passed. A full snapshot replaces every constellation; a delta replaces only the counts it carries, and never with an older receipt. The used count sums the constellations in view, and is zero when none has satellites in view; while one with satellites in view lacks a used count, the latest count-only report stands in.
Definition at line 20 of file GPSDecodedData.h.
| std::optional< GPSSatelliteReport > GPSDecodedData::SatelliteCounts::expire | ( | uint64_t | nowUs | ) |
Drops the counts that expired by nowUs. Poll on every receive, including those without satellite reports.
Definition at line 54 of file GPSDecodedData.cc.
| GPSSatelliteReport GPSDecodedData::SatelliteCounts::update | ( | const GPSDecodedSatellites & | source, |
| uint64_t | nowUs | ||
| ) |
Definition at line 27 of file GPSDecodedData.cc.
References GPSDecodedSatellites::constellations, GPSDecodedSatellites::count, GPSDecodedSatellites::fullSnapshot, and GPSDecodedSatellites::SAT_INFO_MAX_SATELLITES.
| GPSSatelliteReport GPSDecodedData::SatelliteCounts::update | ( | const GPSDecodedSatelliteUsage & | source, |
| uint64_t | nowUs | ||
| ) |
Records a count-only used count.
Definition at line 47 of file GPSDecodedData.cc.
References GPSDecodedSatelliteUsage::usedCount.
|
staticconstexpr |
Definition at line 23 of file GPSDecodedData.h.