QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSReceiverSession.h File Reference
#include <memory>
#include <optional>
#include <utility>
#include <QtCore/QObject>
#include <QtCore/QPointer>
#include <QtCore/QString>
#include "GPSObservation.h"
#include "GPSReceiverConfig.h"
#include "GPSReceiverConnector.h"
#include "GPSReceiverReports.h"
#include "GPSReceiverWorker.h"
#include "PositionManager.h"
+ Include dependency graph for GPSReceiverSession.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GPSBaseStationState
 A receiver session's base-station mode and the antenna position it reports. More...
 
class  GPSReceiverSession
 
struct  GPSReceiverSession::Connection
 

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.
 

Function Documentation

◆ gpsBaseStationStateFor()

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.

◆ gpsReceiverConfigFor()

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().