|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include "GPSReceiverSession.h"#include <cmath>#include <limits>#include <utility>#include "GPSCorrectionManager.h"#include "GPSReceiverDescriptor.h"#include "PositionManager.h"#include "QGCLoggingCategory.h"
Include dependency graph for GPSReceiverSession.cc:Go to the source code of this file.
Functions | |
| GPSReceiverConfig | gpsReceiverConfigFor (const GPSBaseStationConfig &base, GPSType type, uint32_t baudRate, bool allowPersistentChanges, QString *error) |
| GPSBaseStationState | gpsBaseStationStateFor (GPSType type, const GPSReceiverConfig &config) |
| The state a session starts from; a fixed base knows its position before the receiver reports. | |
| GPSBaseStationState gpsBaseStationStateFor | ( | GPSType | type, |
| const GPSReceiverConfig & | config | ||
| ) |
The state a session starts from; a fixed base knows its position before the receiver reports.
Definition at line 46 of file GPSReceiverSession.cc.
References BaseModeDefinition::BaseFixed, BaseModeDefinition::BaseReceiverAveraging, BaseModeDefinition::BaseSurveyIn, config, GPSBaseStationState::mode, GPSBaseStationState::position, and GPSBaseStationState::surveyAccuracyLimitMeters.
| GPSReceiverConfig gpsReceiverConfigFor | ( | const GPSBaseStationConfig & | base, |
| GPSType | type, | ||
| uint32_t | baudRate, | ||
| bool | allowPersistentChanges, | ||
| QString * | error | ||
| ) |
Builds the receiver request for one connection: a passive receiver gets no base settings, and compact observations apply only where the family supports them. error, when given, receives the translated diagnostic, which is empty when the receiver supports the request; the request is returned either way.
Definition at line 30 of file GPSReceiverSession.cc.
References GPSReceiverConfig::baudRate, GPSReceiverCapabilities::compactObservations, config, error, gpsReceiverCapabilities(), and gpsReceiverConfigError().