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

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

Detailed Description

Definition at line 19 of file NTRIPGgaReporter.h.

Member Typedef Documentation

◆ PositionProvider

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.

Member Enumeration Documentation

◆ PositionSource

Enumerator
Auto 
VehicleGPS 
VehicleEKF 
RTKReceiver 
GCSPosition 

Definition at line 24 of file NTRIPGgaReporter.h.

Constructor & Destructor Documentation

◆ NTRIPGgaReporter()

NTRIPGgaReporter::NTRIPGgaReporter ( QObject *  parent = nullptr,
RuntimeScheduler *  scheduler = nullptr 
)
explicit

Definition at line 56 of file NTRIPGgaReporter.cc.

Member Function Documentation

◆ configure()

void NTRIPGgaReporter::configure ( const Configuration &  configuration)

◆ currentSource()

QString NTRIPGgaReporter::currentSource ( ) const
inline

Definition at line 58 of file NTRIPGgaReporter.h.

Referenced by NTRIPManager::ggaSource().

◆ setPositionProvider()

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

Definition at line 89 of file NTRIPGgaReporter.cc.

Referenced by NTRIPManager::setGgaPositionProvider().

◆ sourceChanged

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

◆ start()

void NTRIPGgaReporter::start ( NTRIPTransport *  transport)

Definition at line 94 of file NTRIPGgaReporter.cc.

References ScheduledTask::cancel().

◆ stop()

void NTRIPGgaReporter::stop ( )

Definition at line 108 of file NTRIPGgaReporter.cc.

References ScheduledTask::cancel().

Member Data Documentation

◆ DEFAULT_INTERVAL

constexpr std::chrono::milliseconds NTRIPGgaReporter::DEFAULT_INTERVAL {5000}
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().

◆ FAST_RETRY_INTERVAL

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


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