|
QGroundControl
Ground Control Station for MAVLink Drones
|
Classes | |
| struct | Setting |
Functions | |
| GPSCommandOutcome | rejection (std::string_view reply) |
| A NAK rejects any command. | |
| GPSCommandOutcome | acknowledgement (std::string_view reply) |
| A $PASHS setting is acknowledged by an ACK. | |
| QByteArray | line (std::string_view command) |
| command as one CR/LF-terminated line. | |
| QByteArray | line (std::string_view command, char port) |
| command for port as one CR/LF-terminated line. | |
| QByteArray | surveyStart (std::chrono::seconds duration) |
| QByteArray | fixedPosition (const GPSEllipsoidPosition &position) |
| GPSCommandSequence::Command | fixedPositionCommand (const GPSEllipsoidPosition &position) |
| The fixedPosition() command, acknowledged by an ACK and labelled without its coordinates. | |
| GPSCommandSequence | sequence (std::span< const Setting > settings, char port) |
| settings for port, each acknowledged by an ACK. | |
Variables | |
| constexpr std::chrono::milliseconds | RESPONSE_TIMEOUT {200} |
| Per attempt, for every command. | |
| constexpr std::array | BAUD_RATES {9600u, 38400u, 19200u, 57600u, 115200u} |
| Rates the port query probes, in order. Trimble receivers default to 115200. | |
| constexpr std::string_view | PORT_QUERY = "$PASHQ,PRT" |
| constexpr unsigned | PORT_QUERY_ATTEMPTS = 2 |
| constexpr unsigned | LINK_BAUD = 115200 |
| constexpr std::string_view | LINK_SPEED = "$PASHS,SPD,{port},9" |
| constexpr std::chrono::milliseconds | LINK_SPEED_SETTLE {200} |
| constexpr unsigned | PORT_QUERY_ATTEMPTS_AT_LINK_BAUD = 10 |
| constexpr std::string_view | BOARD_QUERY = "$PASHQ,RID" |
| Board identification; only an MB-Two (BASE_BOARD) can run as a base station. | |
| constexpr std::string_view | BASE_BOARD = "MB2" |
| constexpr std::array | OUTPUTS |
| Navigation output. Some receivers do not acknowledge some of these (GSV, for example), so none is required. | |
| constexpr std::array | STATION |
| Station description once averaging has started (see surveyStart()). | |
| constexpr std::array | RTCM_OUTPUTS |
| RTCM3 output once the base position is known. | |
Ashtech/Trimble receiver configuration as data, in the order it is sent. $PASHS commands set and $PASHQ commands query; the receiver answers with $PASHR. "{port}" stands for the port letter the receiver reported in $PASHR,PRT.
Useful but unused: $PASHQ,VER (firmware), $PASHQ,OPTION (installed options; an MB-Two reports, among others, W,20HZ and K,RTKBASE) and $PASHS,RST (factory reset, followed by a reboot of about 15 s).
| GPSCommandOutcome Ashtech::Plan::acknowledgement | ( | std::string_view | reply | ) |
A $PASHS setting is acknowledged by an ACK.
Definition at line 29 of file AshtechPlan.cc.
References Acknowledged, and rejection().
Referenced by fixedPositionCommand(), and sequence().
| QByteArray Ashtech::Plan::fixedPosition | ( | const GPSEllipsoidPosition & | position | ) |
Fixed base, sent after the first position, then RTCM_OUTPUTS: the $PASHS,POS line for position, with unsigned ddmm.mmmmmmmm and dddmm.mmmmmmmm and hemisphere letters, and the height in metres.
Definition at line 49 of file AshtechPlan.cc.
References gpsFixedDecimal(), latitude, and longitude.
Referenced by fixedPositionCommand().
| GPSCommandSequence::Command Ashtech::Plan::fixedPositionCommand | ( | const GPSEllipsoidPosition & | position | ) |
The fixedPosition() command, acknowledged by an ACK and labelled without its coordinates.
Definition at line 58 of file AshtechPlan.cc.
References acknowledgement(), fixedPosition(), gpsCommand(), and RESPONSE_TIMEOUT.
| QByteArray Ashtech::Plan::line | ( | std::string_view | command | ) |
command as one CR/LF-terminated line.
Definition at line 34 of file AshtechPlan.cc.
Referenced by line(), and sequence().
| QByteArray Ashtech::Plan::line | ( | std::string_view | command, |
| char | port | ||
| ) |
command for port as one CR/LF-terminated line.
Definition at line 39 of file AshtechPlan.cc.
References line().
| GPSCommandOutcome Ashtech::Plan::rejection | ( | std::string_view | reply | ) |
A NAK rejects any command.
Definition at line 24 of file AshtechPlan.cc.
References Pending, and Rejected.
Referenced by acknowledgement().
| GPSCommandSequence Ashtech::Plan::sequence | ( | std::span< const Setting > | settings, |
| char | port | ||
| ) |
settings for port, each acknowledged by an ACK.
Definition at line 64 of file AshtechPlan.cc.
References acknowledgement(), gpsCommand(), line(), RESPONSE_TIMEOUT, and GPSCommandSequence::steps.
| QByteArray Ashtech::Plan::surveyStart | ( | std::chrono::seconds | duration | ) |
Survey-in base, sent after the first position: the $PASHS,POS,AVG line averaging the position over duration. Its $PASHR,RECEIPT start receipt acknowledges it, and the finish receipt carries the averaged position.
Definition at line 44 of file AshtechPlan.cc.
|
inlineconstexpr |
Definition at line 44 of file AshtechPlan.h.
|
inlineconstexpr |
Rates the port query probes, in order. Trimble receivers default to 115200.
Definition at line 31 of file AshtechPlan.h.
Referenced by UBX::Protocol::configure().
|
inlineconstexpr |
Board identification; only an MB-Two (BASE_BOARD) can run as a base station.
Definition at line 43 of file AshtechPlan.h.
|
inlineconstexpr |
The link ends at LINK_BAUD. From another rate, LINK_SPEED (SPD code 9) switches the receiver without a reply; the host keeps receiving for LINK_SPEED_SETTLE, follows, and the port query confirms the receiver at the new rate.
Definition at line 37 of file AshtechPlan.h.
|
inlineconstexpr |
Definition at line 38 of file AshtechPlan.h.
|
inlineconstexpr |
Definition at line 39 of file AshtechPlan.h.
|
inlineconstexpr |
Navigation output. Some receivers do not acknowledge some of these (GSV, for example), so none is required.
Definition at line 47 of file AshtechPlan.h.
|
inlineconstexpr |
Definition at line 32 of file AshtechPlan.h.
|
inlineconstexpr |
Definition at line 33 of file AshtechPlan.h.
|
inlineconstexpr |
Definition at line 40 of file AshtechPlan.h.
|
inlineconstexpr |
Per attempt, for every command.
Definition at line 28 of file AshtechPlan.h.
Referenced by fixedPositionCommand(), and sequence().
|
inlineconstexpr |
RTCM3 output once the base position is known.
Definition at line 66 of file AshtechPlan.h.
|
inlineconstexpr |
Station description once averaging has started (see surveyStart()).
Definition at line 60 of file AshtechPlan.h.