QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SBF::Plan Namespace Reference

Functions

GPSCommandSequence silenceCorrectionOutput ()
 
GPSCommandSequence port (QByteArrayView port, unsigned baud)
 Clears the SBF output of port, keeps a serial port at the link's baud, and selects SBF and the WGS84 datum.
 
GPSCommandSequence base (QByteArrayView port, const GPSBaseStationConfig &base)
 Streams RTCM3 corrections and the PVTGeodetic survey status over port in the mode base selects.
 
constexpr QByteArrayView FORCE_COMMAND_INPUT ("SSSSSSSSSS\n")
 Forces the connection back to command input, whatever it was set to accept.
 
constexpr QByteArrayView PROMPT ("\n\r")
 Asks for the command prompt, which starts with the connection descriptor, such as "USB1>".
 

Variables

constexpr unsigned BAUD_RATE = 115200
 The link rate unless one is selected or detected. It is set on the host side first.
 
constexpr std::array BAUD_RATES {BAUD_RATE}
 The only rate receiver detection probes.
 
constexpr std::chrono::milliseconds PROMPT_TIMEOUT {1000}
 

Detailed Description

Septentrio base-station configuration as command lists, in the order the receiver gets them. The receiver echoes an accepted command as "$R: <command>" and answers a rejected one with "$R?"; each attempt waits up to one second. Commands address the connection descriptor the receiver reported, such as USB1, COM1 or IP10.

Function Documentation

◆ base()

GPSCommandSequence SBF::Plan::base ( QByteArrayView  port,
const GPSBaseStationConfig &  base 
)

Streams RTCM3 corrections and the PVTGeodetic survey status over port in the mode base selects.

Definition at line 49 of file SBFPlan.cc.

References base(), gpsFixedDecimal(), and port().

Referenced by base().

◆ FORCE_COMMAND_INPUT()

constexpr QByteArrayView SBF::Plan::FORCE_COMMAND_INPUT ( "SSSSSSSSSS\n"  )
inlineconstexpr

Forces the connection back to command input, whatever it was set to accept.

◆ port()

GPSCommandSequence SBF::Plan::port ( QByteArrayView  port,
unsigned  baud 
)

Clears the SBF output of port, keeps a serial port at the link's baud, and selects SBF and the WGS84 datum.

Definition at line 34 of file SBFPlan.cc.

References port().

Referenced by base(), port(), and silenceCorrectionOutput().

◆ PROMPT()

constexpr QByteArrayView SBF::Plan::PROMPT ( "\n\r"  )
inlineconstexpr

Asks for the command prompt, which starts with the connection descriptor, such as "USB1>".

◆ silenceCorrectionOutput()

GPSCommandSequence SBF::Plan::silenceCorrectionOutput ( )

Stops correction output on every connection, so the prompt can be read. Receivers without some of these connections reject them, so each is optional.

Definition at line 25 of file SBFPlan.cc.

References port().

Variable Documentation

◆ BAUD_RATE

constexpr unsigned SBF::Plan::BAUD_RATE = 115200
inlineconstexpr

The link rate unless one is selected or detected. It is set on the host side first.

Definition at line 18 of file SBFPlan.h.

◆ BAUD_RATES

constexpr std::array SBF::Plan::BAUD_RATES {BAUD_RATE}
inlineconstexpr

The only rate receiver detection probes.

Definition at line 20 of file SBFPlan.h.

◆ PROMPT_TIMEOUT

constexpr std::chrono::milliseconds SBF::Plan::PROMPT_TIMEOUT {1000}
inlineconstexpr

Definition at line 27 of file SBFPlan.h.