#include <GPSManager.h>
Public Member Functions | |
| GPSManager (QObject *parent=nullptr, RuntimeScheduler *scheduler=nullptr) | |
| scheduler runs the timers of every GPS service; the manager creates one when none is given. | |
| ~GPSManager () | |
| void | init () |
| void | shutdown () |
| Stops the GPS services, then the position manager. | |
| GPSReceiver * | receiver () const |
| GPSCorrectionManager * | corrections () const |
| NTRIPManager * | ntrip () const |
| PositionManager * | positionManager () const |
| Q_INVOKABLE bool | saveCurrentBasePosition () |
Static Public Member Functions | |
| static GPSManager * | instance () |
Friends | |
| class | GPSManagerTest |
Owns the GPS services and wires them to settings and vehicles. Terms used across src/GPS:
Definition at line 21 of file GPSManager.h.
| GPSManager::GPSManager | ( | QObject * | parent = nullptr, |
| RuntimeScheduler * | scheduler = nullptr ) |
scheduler runs the timers of every GPS service; the manager creates one when none is given.
Definition at line 42 of file GPSManager.cc.
Referenced by GPSManagerTest, and instance().
| GPSManager::~GPSManager | ( | ) |
Definition at line 61 of file GPSManager.cc.
References shutdown().
|
inline |
Definition at line 52 of file GPSManager.h.
| void GPSManager::init | ( | ) |
Initializes the ground-station position manager first, then the GPS services that consume it, and starts polling the receiver connection.
Definition at line 88 of file GPSManager.cc.
References GPSSettingsBindings::bindCorrections(), GPSSettingsBindings::bindNtrip(), GPSSettingsBindings::bindPosition(), GPSSettingsBindings::bindReceiver(), LinkManager::connectionsSuspended(), LinkManager::instance(), and SettingsManager::instance().
Referenced by GPSManagerTest.
|
static |
Definition at line 67 of file GPSManager.cc.
References GPSManager().
Referenced by QGroundControlQmlGlobal::gpsManager(), GPSManagerTest, QGroundControlQmlGlobal::positionManager(), and QGCApplication::shutdown().
|
inline |
Definition at line 54 of file GPSManager.h.
|
inline |
Definition at line 56 of file GPSManager.h.
Referenced by QGroundControlQmlGlobal::positionManager().
|
inline |
| bool GPSManager::saveCurrentBasePosition | ( | ) |
Stores the receiver's current position and accuracy as the fixed base position for a later connection. Returns false, leaving the settings unchanged, when the receiver's facts cannot save the current position.
Definition at line 72 of file GPSManager.cc.
References SettingsManager::instance(), and SettingsManager::rtkSettings().
| void GPSManager::shutdown | ( | ) |
Stops the GPS services, then the position manager.
Definition at line 104 of file GPSManager.cc.
Referenced by GPSManagerTest, QGCApplication::shutdown(), and ~GPSManager().
|
friend |
Definition at line 35 of file GPSManager.h.
References GPSManager(), GPSManagerTest, init(), instance(), and shutdown().
Referenced by GPSManagerTest.