QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSCommandChannel.h File Reference
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <optional>
#include <span>
#include <variant>
#include <vector>
#include <QtCore/QByteArrayView>
#include <QtCore/QString>
#include "GPSCommand.h"
#include "GPSDeadline.h"
#include "GPSFamilyProtocol.h"
#include "GPSProtocolEvent.h"
+ Include dependency graph for GPSCommandChannel.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GPSBaudDetection
 
class  GPSDeadlineScope
 
class  GPSCommandChannel
 

Typedefs

using GPSBaudProbeFunction = std::function< GPSBaudProbe()>
 Probes the receiver at the rate the link was just set to.
 

Enumerations

enum class  GPSBaudStatus { Configured , Unsupported , Cancelled , Error }
 How the link answered a baud rate change. More...
 
enum class  GPSBaudProbe { Found , TryNext , Stop }
 

Functions

QString gpsRateList (std::span< const unsigned > rates)
 rates as a diagnostic names them, such as "38400, 9600".
 

Typedef Documentation

◆ GPSBaudProbeFunction

using GPSBaudProbeFunction = std::function<GPSBaudProbe()>

Probes the receiver at the rate the link was just set to.

Definition at line 57 of file GPSCommandChannel.h.

Enumeration Type Documentation

◆ GPSBaudProbe

enum class GPSBaudProbe
strong
Enumerator
Found 
TryNext 
Stop 

The receiver answered but is not usable, so no other rate is tried.

Definition at line 34 of file GPSCommandChannel.h.

◆ GPSBaudStatus

enum class GPSBaudStatus
strong

How the link answered a baud rate change.

Enumerator
Configured 
Unsupported 
Cancelled 
Error 

Definition at line 26 of file GPSCommandChannel.h.

Function Documentation

◆ gpsRateList()

QString gpsRateList ( std::span< const unsigned >  rates)

rates as a diagnostic names them, such as "38400, 9600".

Definition at line 18 of file GPSCommandChannel.cc.

Referenced by GPSReceiverDetector::detect(), and GPSCommandChannel::failNoAnswer().