|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <NTRIPGgaProvider.h>
Inheritance diagram for NTRIPGgaProvider:
Collaboration diagram for NTRIPGgaProvider:Public Types | |
| enum class | PositionSource { Auto = 0 , VehicleGPS = 1 , VehicleEKF = 2 , RTKBase = 3 , GCSPosition = 4 } |
| using | PositionProvider = std::function< PositionResult()> |
Signals | |
| void | sourceChanged (const QString &source) |
Public Member Functions | |
| NTRIPGgaProvider (QObject *parent=nullptr) | |
| void | init (NTRIPSettings *settings) |
| void | start (NTRIPTransport *transport) |
| void | stop () |
| QString | currentSource () const |
| void | setPositionProvider (PositionSource source, PositionProvider provider) |
Static Public Attributes | |
| static constexpr std::chrono::milliseconds | kDefaultInterval {5000} |
| Fallback when no NTRIPSettings are available (unit tests, early init). | |
| static constexpr std::chrono::milliseconds | kFastRetryInterval {1000} |
Definition at line 25 of file NTRIPGgaProvider.h.
| using NTRIPGgaProvider::PositionProvider = std::function<PositionResult()> |
Definition at line 46 of file NTRIPGgaProvider.h.
|
strong |
| Enumerator | |
|---|---|
| Auto | |
| VehicleGPS | |
| VehicleEKF | |
| RTKBase | |
| GCSPosition | |
Definition at line 30 of file NTRIPGgaProvider.h.
|
explicit |
Definition at line 121 of file NTRIPGgaProvider.cc.
|
inline |
Definition at line 58 of file NTRIPGgaProvider.h.
Referenced by NTRIPManager::ggaSource().
| void NTRIPGgaProvider::init | ( | NTRIPSettings * | settings | ) |
Post-construction wiring. Observes the NTRIP position-source / interval settings and caches them for the GGA hot path. Must be called after SettingsManager is ready — no singleton access happens at construction.
Definition at line 127 of file NTRIPGgaProvider.cc.
References kDefaultInterval, and Fact::rawValueChanged().
Referenced by NTRIPManager::init().
| void NTRIPGgaProvider::setPositionProvider | ( | PositionSource | source, |
| PositionProvider | provider | ||
| ) |
Definition at line 157 of file NTRIPGgaProvider.cc.
|
signal |
Referenced by NTRIPManager::NTRIPManager().
| void NTRIPGgaProvider::start | ( | NTRIPTransport * | transport | ) |
Definition at line 162 of file NTRIPGgaProvider.cc.
| void NTRIPGgaProvider::stop | ( | ) |
Definition at line 172 of file NTRIPGgaProvider.cc.
|
staticconstexpr |
Fallback when no NTRIPSettings are available (unit tests, early init).
Definition at line 41 of file NTRIPGgaProvider.h.
Referenced by init().
|
staticconstexpr |
Short interval used while we still lack a valid fix — lets the caster receive a first GGA quickly after the position becomes available.
Definition at line 44 of file NTRIPGgaProvider.h.