QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSReceiverConnector Class Referenceabstract

#include <GPSReceiverConnector.h>

Inheritance diagram for GPSReceiverConnector:

Public Member Functions

virtual bool hasReceiver () const =0
virtual void setConnectionError (const QString &message)=0
virtual void endConnection (bool clearError)=0
virtual bool connectTcp (const QString &host, quint16 port, GPSType type, bool allowPersistentChanges)=0
virtual bool connectUdp (quint16 port, GPSType type)=0
virtual bool connectSerial (const QString &device, GPSType type, uint32_t baudRate, bool allowPersistentChanges, GPSSerialClaim claim)=0
virtual bool serialPortAvailable (const QString &device) const =0
virtual QString serialPortLabel (const QString &device) const =0
virtual bool serialPortAllowed (const QString &device) const =0
virtual QStringList rtkReceiverPorts () const =0
virtual GPSSerialClaim claimSerialPort (const QString &device)=0
 Claims the device until the last copy is released; empty when it is in use.

Protected Member Functions

 ~GPSReceiverConnector ()=default

Detailed Description

The receiver operations GPSReceiverConnectionPolicy drives. They change state without emitting; the receiver emits once its public method or report handler returns.

Definition at line 70 of file GPSReceiverConnector.h.

Constructor & Destructor Documentation

◆ ~GPSReceiverConnector()

GPSReceiverConnector::~GPSReceiverConnector ( )
protecteddefault

Member Function Documentation

◆ claimSerialPort()

virtual GPSSerialClaim GPSReceiverConnector::claimSerialPort ( const QString & device)
pure virtual

Claims the device until the last copy is released; empty when it is in use.

◆ connectSerial()

virtual bool GPSReceiverConnector::connectSerial ( const QString & device,
GPSType type,
uint32_t baudRate,
bool allowPersistentChanges,
GPSSerialClaim claim )
pure virtual

◆ connectTcp()

virtual bool GPSReceiverConnector::connectTcp ( const QString & host,
quint16 port,
GPSType type,
bool allowPersistentChanges )
pure virtual

◆ connectUdp()

virtual bool GPSReceiverConnector::connectUdp ( quint16 port,
GPSType type )
pure virtual

◆ endConnection()

virtual void GPSReceiverConnector::endConnection ( bool clearError)
pure virtual

◆ hasReceiver()

virtual bool GPSReceiverConnector::hasReceiver ( ) const
pure virtual

Implemented in GPSReceiver.

◆ rtkReceiverPorts()

virtual QStringList GPSReceiverConnector::rtkReceiverPorts ( ) const
pure virtual

Free devices whose USB identity is a known RTK receiver adapter, one per physical device, which discovery may connect with the saved manufacturer.

◆ serialPortAllowed()

virtual bool GPSReceiverConnector::serialPortAllowed ( const QString & device) const
pure virtual

Whether QGC may open the device. Only a USB device on Android can be one that it may not: the user has not allowed it.

◆ serialPortAvailable()

virtual bool GPSReceiverConnector::serialPortAvailable ( const QString & device) const
pure virtual

The device is plugged in and not in its bootloader. device is any name of its port, as the saved device is: one that survives replugging, or a system location.

◆ serialPortLabel()

virtual QString GPSReceiverConnector::serialPortLabel ( const QString & device) const
pure virtual

What a message calls the device: the system location of its port, as the device picker shows it, or the name itself while no port is listed by it. Empty for a device that then has no name the user knows it by.

◆ setConnectionError()

virtual void GPSReceiverConnector::setConnectionError ( const QString & message)
pure virtual

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