|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <GPSReceiverReports.h>
Collaboration diagram for GPSIntegrityReport:Classes | |
| struct | Antenna |
| struct | Jamming |
| struct | Spoofing |
Public Types | |
| enum class | JammingState { Unknown , Ok , Warning , Critical } |
| enum class | SpoofingState { Unknown , None , Indicated , Multiple } |
| enum class | AntennaState { Unknown , Ok , Open , Short } |
| Ordered by severity, so the worst of several reports is the greatest. More... | |
Public Member Functions | |
| GPSIntegrityReport | freshAt (uint64_t nowUs, std::chrono::microseconds maximumAge=DIAGNOSTIC_MAX_AGE) const |
| Project independent diagnostic groups at the consumer's monotonic time. | |
Static Public Member Functions | |
| static constexpr JammingState | jammingStateFromValue (int value) |
| static constexpr SpoofingState | spoofingStateFromValue (int value) |
Public Attributes | |
| uint64_t | timestampUs = 0 |
| Jamming | jamming {} |
| Spoofing | spoofing {} |
| Antenna | antenna {} |
| uint64_t | outputOverflowUs = 0 |
Static Public Attributes | |
| static constexpr std::chrono::microseconds | DIAGNOSTIC_MAX_AGE = std::chrono::seconds(5) |
| Receipt age at which a diagnostic group reverts to unknown. | |
Definition at line 53 of file GPSReceiverReports.h.
|
strong |
Ordered by severity, so the worst of several reports is the greatest.
| Enumerator | |
|---|---|
| Unknown | |
| Ok | |
| Open | |
| Short | |
Definition at line 70 of file GPSReceiverReports.h.
|
strong |
| Enumerator | |
|---|---|
| Unknown | |
| Ok | |
| Warning | |
| Critical | |
Definition at line 55 of file GPSReceiverReports.h.
|
strong |
| Enumerator | |
|---|---|
| Unknown | |
| None | |
| Indicated | |
| Multiple | |
Definition at line 62 of file GPSReceiverReports.h.
|
inline |
Project independent diagnostic groups at the consumer's monotonic time.
Definition at line 123 of file GPSReceiverReports.h.
References antenna, MonotonicClock::fresh(), jamming, spoofing, GPSIntegrityReport::Jamming::state, GPSIntegrityReport::Jamming::timestampUs, GPSIntegrityReport::Spoofing::timestampUs, GPSIntegrityReport::Antenna::timestampUs, and Unknown.
|
inlinestaticconstexpr |
Definition at line 78 of file GPSReceiverReports.h.
References Critical, and Unknown.
Referenced by GPSDecodedData::position().
|
inlinestaticconstexpr |
Definition at line 85 of file GPSReceiverReports.h.
References Multiple, and Unknown.
Referenced by GPSDecodedData::position().
| Antenna GPSIntegrityReport::antenna {} |
Definition at line 114 of file GPSReceiverReports.h.
Referenced by freshAt().
|
staticconstexpr |
Receipt age at which a diagnostic group reverts to unknown.
Definition at line 120 of file GPSReceiverReports.h.
| Jamming GPSIntegrityReport::jamming {} |
Definition at line 112 of file GPSReceiverReports.h.
Referenced by freshAt(), and GPSDecodedData::position().
| uint64_t GPSIntegrityReport::outputOverflowUs = 0 |
Receipt of the latest report that the receiver dropped output its connection could not carry; zero when none. Consumers decide how long it stays relevant.
Definition at line 117 of file GPSReceiverReports.h.
| Spoofing GPSIntegrityReport::spoofing {} |
Definition at line 113 of file GPSReceiverReports.h.
Referenced by freshAt(), and GPSDecodedData::position().
| uint64_t GPSIntegrityReport::timestampUs = 0 |
Definition at line 111 of file GPSReceiverReports.h.
Referenced by GPSDecodedData::position(), and GPSDecodeContext::publishIntegrity().