QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SBFPlan.h
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <chrono>
5
6#include <QtCore/QByteArray>
7#include <QtCore/QByteArrayView>
8
9#include "GPSCommand.h"
10#include "GPSReceiverConfig.h"
11
15namespace SBF::Plan {
16
18inline constexpr unsigned BAUD_RATE = 115200;
20inline constexpr std::array BAUD_RATES{BAUD_RATE};
21
23inline constexpr QByteArrayView FORCE_COMMAND_INPUT("SSSSSSSSSS\n");
24
26inline constexpr QByteArrayView PROMPT("\n\r");
27inline constexpr std::chrono::milliseconds PROMPT_TIMEOUT{1000};
28
32
34[[nodiscard]] GPSCommandSequence port(QByteArrayView port, unsigned baud);
35
37[[nodiscard]] GPSCommandSequence base(QByteArrayView port, const GPSBaseStationConfig& base);
38
39} // namespace SBF::Plan
constexpr QByteArrayView PROMPT("\n\r")
Asks for the command prompt, which starts with the connection descriptor, such as "USB1>".
GPSCommandSequence base(QByteArrayView port, const GPSBaseStationConfig &base)
Streams RTCM3 corrections and the PVTGeodetic survey status over port in the mode base selects.
Definition SBFPlan.cc:49
constexpr std::array BAUD_RATES
The only rate receiver detection probes.
Definition SBFPlan.h:20
constexpr unsigned BAUD_RATE
The link rate unless one is selected or detected. It is set on the host side first.
Definition SBFPlan.h:18
constexpr std::chrono::milliseconds PROMPT_TIMEOUT
Definition SBFPlan.h:27
constexpr QByteArrayView FORCE_COMMAND_INPUT("SSSSSSSSSS\n")
Forces the connection back to command input, whatever it was set to accept.
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 ...
Definition SBFPlan.cc:34
GPSCommandSequence silenceCorrectionOutput()
Definition SBFPlan.cc:25
Configuration used only by the RTK base-station role.