QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPGgaProvider Class Reference

#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}
 

Detailed Description

Definition at line 25 of file NTRIPGgaProvider.h.

Member Typedef Documentation

◆ PositionProvider

Definition at line 46 of file NTRIPGgaProvider.h.

Member Enumeration Documentation

◆ PositionSource

Enumerator
Auto 
VehicleGPS 
VehicleEKF 
RTKBase 
GCSPosition 

Definition at line 30 of file NTRIPGgaProvider.h.

Constructor & Destructor Documentation

◆ NTRIPGgaProvider()

NTRIPGgaProvider::NTRIPGgaProvider ( QObject *  parent = nullptr)
explicit

Definition at line 121 of file NTRIPGgaProvider.cc.

Member Function Documentation

◆ currentSource()

QString NTRIPGgaProvider::currentSource ( ) const
inline

Definition at line 58 of file NTRIPGgaProvider.h.

Referenced by NTRIPManager::ggaSource().

◆ init()

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().

◆ setPositionProvider()

void NTRIPGgaProvider::setPositionProvider ( PositionSource  source,
PositionProvider  provider 
)

Definition at line 157 of file NTRIPGgaProvider.cc.

◆ sourceChanged

void NTRIPGgaProvider::sourceChanged ( const QString &  source)
signal

◆ start()

void NTRIPGgaProvider::start ( NTRIPTransport transport)

Definition at line 162 of file NTRIPGgaProvider.cc.

◆ stop()

void NTRIPGgaProvider::stop ( )

Definition at line 172 of file NTRIPGgaProvider.cc.

Member Data Documentation

◆ kDefaultInterval

constexpr std::chrono::milliseconds NTRIPGgaProvider::kDefaultInterval {5000}
staticconstexpr

Fallback when no NTRIPSettings are available (unit tests, early init).

Definition at line 41 of file NTRIPGgaProvider.h.

Referenced by init().

◆ kFastRetryInterval

constexpr std::chrono::milliseconds NTRIPGgaProvider::kFastRetryInterval {1000}
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.


The documentation for this class was generated from the following files: