QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSReceiverMessages.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4
5#include <QtCore/QString>
6
10#include "GPSType.h"
11#include "RTKSettings.h"
12
14namespace GPSReceiverMessages {
15
18[[nodiscard]] QString sessionEnded(GPSReceiverSessionOutcome outcome, GPSConnectionError error, const QString& detail,
19 bool portRemoved);
20
22[[nodiscard]] QString consentRefused(const QString& detail, GPSType family);
23
26[[nodiscard]] QString inputProblem(GPSInputProblem problem, std::optional<GPSType> detected, const QString& endpoint,
27 bool forwardingCorrections);
28
30[[nodiscard]] QString outputOverflow(RTKSettings::ReceiverRole role, bool compactObservations);
31
33[[nodiscard]] QString fixLabel(GPSFixQuality fixType);
34
37{
39 bool configured = false;
40 bool hasReceiver = false;
42 bool identifying = false;
43 bool reconnecting = false;
46 int baseMode = -1;
47 bool surveyActive = false;
48};
49
51[[nodiscard]] QString receiverStatus(const ReceiverStatus& status);
52
53} // namespace GPSReceiverMessages
GPSReceiverSessionOutcome
What the policy does after a receiver session ends; the receiver words the message for it.
Error error
ReceiverRole
Persisted values of receiverRole. The storage type keeps any saved value a valid enum value.
Definition RTKSettings.h:36
GPSInputProblem
Why a receiver that stays connected while silent reports no position.
The wording of GPSReceiver's errors, warnings and labels, translated in the GPSReceiver context.
QString consentRefused(const QString &detail, GPSType family)
The error of an automatic connection that the family receiver refused for lack of flash-save consent.
QString outputOverflow(RTKSettings::ReceiverRole role, bool compactObservations)
The warning that the receiver produces more output than its connection carries.
QString fixLabel(GPSFixQuality fixType)
The short label of a fix type; empty for an unknown one.
QString receiverStatus(const ReceiverStatus &status)
The receiver status sentence; empty when no receiver is connected or being connected.
QString sessionEnded(GPSReceiverSessionOutcome outcome, GPSConnectionError error, const QString &detail, bool portRemoved)
QString inputProblem(GPSInputProblem problem, std::optional< GPSType > detected, const QString &endpoint, bool forwardingCorrections)
What the receiver status sentence describes.
bool configured
The receiver finished configuration.
bool identifying
An Automatic connection that has not identified the receiver yet.