QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSReceiverConfiguration Struct Reference

The receiver configuration the application's settings binding supplies as values. More...

#include <GPSReceiverConnector.h>

+ Collaboration diagram for GPSReceiverConfiguration:

Public Member Functions

bool operator== (const GPSReceiverConfiguration &) const =default
 
RTKSettings::ConnectionType effectiveConnectionType () const
 The connection this configuration uses; builds without serial links connect a serial selection over TCP.
 
bool sameConnection (const GPSReceiverConfiguration &other) const
 

Public Attributes

RTKSettings::ReceiverRole receiverRole = RTKSettings::ConfiguredBase
 Only a configured base is written to by QGroundControl.
 
bool forwardReceiverRtcm = true
 A passive receiver's RTCM output becomes a correction source for vehicles.
 
int baseReceiverManufacturer = GPS_AUTOMATIC_MANUFACTURER
 A GPSReceiverDescriptor manufacturer, or GPS_AUTOMATIC_MANUFACTURER to detect the family on every connect.
 
RTKSettings::ConnectionType connectionType = RTKSettings::Serial
 
QString tcpHost
 
uint32_t tcpPort = 0
 
uint32_t udpPort = 0
 
QString serialDevice
 
uint32_t serialBaudRate = 0
 
GPSBaseStationConfig base
 
bool autoConnect = true
 Keep the saved receiver connected, or discover a configured base on USB when no device is saved.
 

Detailed Description

The receiver configuration the application's settings binding supplies as values.

Definition at line 18 of file GPSReceiverConnector.h.

Member Function Documentation

◆ effectiveConnectionType()

RTKSettings::ConnectionType GPSReceiverConfiguration::effectiveConnectionType ( ) const
inline

The connection this configuration uses; builds without serial links connect a serial selection over TCP.

Definition at line 38 of file GPSReceiverConnector.h.

References connectionType, RTKSettings::Serial, RTKSettings::Tcp, and RTKSettings::Udp.

Referenced by GPSReceiver::effectiveConnectionType().

◆ operator==()

bool GPSReceiverConfiguration::operator== ( const GPSReceiverConfiguration &  ) const
default

◆ sameConnection()

bool GPSReceiverConfiguration::sameConnection ( const GPSReceiverConfiguration &  other) const
inline

Selects the same receiver, connection, and base mode, which a pending retry and the flash-save permission were made for.

Definition at line 50 of file GPSReceiverConnector.h.

References base, baseReceiverManufacturer, connectionType, GPSBaseStationConfig::mode, receiverRole, serialBaudRate, serialDevice, tcpHost, tcpPort, and udpPort.

Referenced by GPSReceiverConnectionPolicy::configurationChanged(), and GPSReceiver::setConfiguration().

Member Data Documentation

◆ autoConnect

bool GPSReceiverConfiguration::autoConnect = true

Keep the saved receiver connected, or discover a configured base on USB when no device is saved.

Definition at line 34 of file GPSReceiverConnector.h.

Referenced by GPSReceiverConnectionPolicy::configurationChanged(), GPSReceiverConnectionPolicy::receiverReady(), and GPSReceiverConnectionPolicy::update().

◆ base

GPSBaseStationConfig GPSReceiverConfiguration::base

Definition at line 32 of file GPSReceiverConnector.h.

Referenced by GPSReceiver::baseModeSupported(), and sameConnection().

◆ baseReceiverManufacturer

int GPSReceiverConfiguration::baseReceiverManufacturer = GPS_AUTOMATIC_MANUFACTURER

A GPSReceiverDescriptor manufacturer, or GPS_AUTOMATIC_MANUFACTURER to detect the family on every connect.

Definition at line 25 of file GPSReceiverConnector.h.

Referenced by GPSReceiver::baseModeSupported(), GPSReceiver::canConnect(), GPSReceiver::connectReceiver(), and sameConnection().

◆ connectionType

RTKSettings::ConnectionType GPSReceiverConfiguration::connectionType = RTKSettings::Serial

Definition at line 26 of file GPSReceiverConnector.h.

Referenced by effectiveConnectionType(), and sameConnection().

◆ forwardReceiverRtcm

bool GPSReceiverConfiguration::forwardReceiverRtcm = true

A passive receiver's RTCM output becomes a correction source for vehicles.

Definition at line 23 of file GPSReceiverConnector.h.

◆ receiverRole

RTKSettings::ReceiverRole GPSReceiverConfiguration::receiverRole = RTKSettings::ConfiguredBase

Only a configured base is written to by QGroundControl.

Definition at line 21 of file GPSReceiverConnector.h.

Referenced by GPSReceiver::baseModeSupported(), GPSReceiver::canConnect(), GPSReceiver::connectionSupported(), GPSReceiver::connectReceiver(), and sameConnection().

◆ serialBaudRate

uint32_t GPSReceiverConfiguration::serialBaudRate = 0

Definition at line 31 of file GPSReceiverConnector.h.

Referenced by sameConnection().

◆ serialDevice

QString GPSReceiverConfiguration::serialDevice

Definition at line 30 of file GPSReceiverConnector.h.

Referenced by sameConnection().

◆ tcpHost

QString GPSReceiverConfiguration::tcpHost

Definition at line 27 of file GPSReceiverConnector.h.

Referenced by sameConnection().

◆ tcpPort

uint32_t GPSReceiverConfiguration::tcpPort = 0

Definition at line 28 of file GPSReceiverConnector.h.

Referenced by sameConnection().

◆ udpPort

uint32_t GPSReceiverConfiguration::udpPort = 0

Definition at line 29 of file GPSReceiverConnector.h.

Referenced by sameConnection().


The documentation for this struct was generated from the following file: