QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
AshtechPlan.h File Reference
#include <array>
#include <chrono>
#include <span>
#include <string_view>
#include <QtCore/QByteArray>
#include "GPSCommand.h"
+ Include dependency graph for AshtechPlan.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Ashtech::Plan::Setting
 

Namespaces

namespace  Ashtech
 
namespace  Ashtech::Plan
 

Functions

GPSCommandOutcome Ashtech::Plan::rejection (std::string_view reply)
 A NAK rejects any command.
 
GPSCommandOutcome Ashtech::Plan::acknowledgement (std::string_view reply)
 A $PASHS setting is acknowledged by an ACK.
 
QByteArray Ashtech::Plan::line (std::string_view command)
 command as one CR/LF-terminated line.
 
QByteArray Ashtech::Plan::line (std::string_view command, char port)
 command for port as one CR/LF-terminated line.
 
QByteArray Ashtech::Plan::surveyStart (std::chrono::seconds duration)
 
QByteArray Ashtech::Plan::fixedPosition (const GPSEllipsoidPosition &position)
 
GPSCommandSequence::Command Ashtech::Plan::fixedPositionCommand (const GPSEllipsoidPosition &position)
 The fixedPosition() command, acknowledged by an ACK and labelled without its coordinates.
 
GPSCommandSequence Ashtech::Plan::sequence (std::span< const Setting > settings, char port)
 settings for port, each acknowledged by an ACK.
 

Variables

constexpr std::chrono::milliseconds Ashtech::Plan::RESPONSE_TIMEOUT {200}
 Per attempt, for every command.
 
constexpr std::array Ashtech::Plan::BAUD_RATES {9600u, 38400u, 19200u, 57600u, 115200u}
 Rates the port query probes, in order. Trimble receivers default to 115200.
 
constexpr std::string_view Ashtech::Plan::PORT_QUERY = "$PASHQ,PRT"
 
constexpr unsigned Ashtech::Plan::PORT_QUERY_ATTEMPTS = 2
 
constexpr unsigned Ashtech::Plan::LINK_BAUD = 115200
 
constexpr std::string_view Ashtech::Plan::LINK_SPEED = "$PASHS,SPD,{port},9"
 
constexpr std::chrono::milliseconds Ashtech::Plan::LINK_SPEED_SETTLE {200}
 
constexpr unsigned Ashtech::Plan::PORT_QUERY_ATTEMPTS_AT_LINK_BAUD = 10
 
constexpr std::string_view Ashtech::Plan::BOARD_QUERY = "$PASHQ,RID"
 Board identification; only an MB-Two (BASE_BOARD) can run as a base station.
 
constexpr std::string_view Ashtech::Plan::BASE_BOARD = "MB2"
 
constexpr std::array Ashtech::Plan::OUTPUTS
 Navigation output. Some receivers do not acknowledge some of these (GSV, for example), so none is required.
 
constexpr std::array Ashtech::Plan::STATION
 Station description once averaging has started (see surveyStart()).
 
constexpr std::array Ashtech::Plan::RTCM_OUTPUTS
 RTCM3 output once the base position is known.