|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <NTRIPGgaReporter.h>
Inheritance diagram for NTRIPGgaReporter:
Collaboration diagram for NTRIPGgaReporter:Classes | |
| struct | Configuration |
Public Types | |
| enum class | PositionSource { Auto = 0 , VehicleGPS = 1 , VehicleEKF = 2 , RTKReceiver = 3 , GCSPosition = 4 } |
| using | PositionProvider = std::function< std::optional< GPSObservation >()> |
Signals | |
| void | sourceChanged (const QString &source) |
Public Member Functions | |
| NTRIPGgaReporter (QObject *parent=nullptr, RuntimeScheduler *scheduler=nullptr) | |
| void | configure (const Configuration &configuration) |
| void | start (NTRIPTransport *transport) |
| void | stop () |
| QString | currentSource () const |
| void | setPositionProvider (PositionSource source, PositionProvider provider) |
Static Public Attributes | |
| static constexpr std::chrono::milliseconds | DEFAULT_INTERVAL {5000} |
| Interval of a default configuration, and of one whose interval is not positive. | |
| static constexpr std::chrono::milliseconds | FAST_RETRY_INTERVAL {1000} |
Definition at line 19 of file NTRIPGgaReporter.h.
| using NTRIPGgaReporter::PositionProvider = std::function<std::optional<GPSObservation>()> |
A fresh position for a GGA report, or none. GGA carries altitude above mean sea level, so an observation in another datum, which has no geoid separation to convert it, is not reported.
Definition at line 42 of file NTRIPGgaReporter.h.
|
strong |
| Enumerator | |
|---|---|
| Auto | |
| VehicleGPS | |
| VehicleEKF | |
| RTKReceiver | |
| GCSPosition | |
Definition at line 24 of file NTRIPGgaReporter.h.
|
explicit |
Definition at line 56 of file NTRIPGgaReporter.cc.
| void NTRIPGgaReporter::configure | ( | const Configuration & | configuration | ) |
Definition at line 79 of file NTRIPGgaReporter.cc.
References DEFAULT_INTERVAL, NTRIPGgaReporter::Configuration::interval, and NTRIPGgaReporter::Configuration::source.
Referenced by NTRIPManager::init(), and NTRIPManager::setConfiguration().
|
inline |
Definition at line 58 of file NTRIPGgaReporter.h.
Referenced by NTRIPManager::ggaSource().
| void NTRIPGgaReporter::setPositionProvider | ( | PositionSource | source, |
| PositionProvider | provider | ||
| ) |
Definition at line 89 of file NTRIPGgaReporter.cc.
Referenced by NTRIPManager::setGgaPositionProvider().
|
signal |
Referenced by NTRIPManager::NTRIPManager().
| void NTRIPGgaReporter::start | ( | NTRIPTransport * | transport | ) |
Definition at line 94 of file NTRIPGgaReporter.cc.
References ScheduledTask::cancel().
| void NTRIPGgaReporter::stop | ( | ) |
Definition at line 108 of file NTRIPGgaReporter.cc.
References ScheduledTask::cancel().
|
staticconstexpr |
Interval of a default configuration, and of one whose interval is not positive.
Definition at line 35 of file NTRIPGgaReporter.h.
Referenced by configure().
|
staticconstexpr |
Interval used until the first GGA is sent; VRS casters stream nothing before it, so it must follow soon after a position becomes available.
Definition at line 38 of file NTRIPGgaReporter.h.