QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSReceiverDescriptor.cc File Reference
#include "GPSReceiverDescriptor.h"
#include <algorithm>
#include <array>
#include <QtCore/QHash>
+ Include dependency graph for GPSReceiverDescriptor.cc:

Go to the source code of this file.

Functions

std::span< const GPSReceiverDescriptor > gpsReceiverDescriptors ()
 
const GPSReceiverDescriptor * gpsReceiverDescriptor (GPSType type)
 
QString gpsReceiverName (GPSType type)
 The name of type's receiver family as shown to users; empty when no descriptor exists.
 
QString gpsInputProtocolName (GPSType type)
 
const GPSReceiverDescriptor * gpsReceiverDescriptorForManufacturer (int manufacturer)
 
std::optional< GPSType > gpsReceiverTypeForManufacturer (int manufacturer)
 The family a persisted manufacturer selects, GPSType::automatic for GPS_AUTOMATIC_MANUFACTURER; empty when unknown.
 
int gpsReceiverManufacturerForType (GPSType type)
 The persisted manufacturer of type, or GPS_AUTOMATIC_MANUFACTURER when it has none.
 
GPSReceiverCapabilities gpsReceiverCapabilities (GPSType type)
 What type supports, for either role; unknown receiver families support nothing.
 
const GPSReceiverPresentation & gpsReceiverPresentation (int manufacturer)
 

Function Documentation

◆ gpsInputProtocolName()

QString gpsInputProtocolName ( GPSType  type)

How the protocol a passive input decodes is shown to users: the family and its protocol, such as "u-blox (UBX)", or "NMEA" for GPSType::passive; empty for a family without a protocol of its own.

Definition at line 114 of file GPSReceiverDescriptor.cc.

References gpsReceiverDescriptor(), and gpsReceiverName().

Referenced by GPSReceiver::detectedReceiver().

◆ gpsReceiverCapabilities()

◆ gpsReceiverDescriptor()

◆ gpsReceiverDescriptorForManufacturer()

const GPSReceiverDescriptor * gpsReceiverDescriptorForManufacturer ( int  manufacturer)

◆ gpsReceiverDescriptors()

std::span< const GPSReceiverDescriptor > gpsReceiverDescriptors ( )

Definition at line 97 of file GPSReceiverDescriptor.cc.

◆ gpsReceiverManufacturerForType()

int gpsReceiverManufacturerForType ( GPSType  type)

The persisted manufacturer of type, or GPS_AUTOMATIC_MANUFACTURER when it has none.

Definition at line 141 of file GPSReceiverDescriptor.cc.

References GPS_AUTOMATIC_MANUFACTURER, and gpsReceiverDescriptor().

Referenced by GPSReceiver::capabilitiesFor(), and GPSReceiverSession::manufacturer().

◆ gpsReceiverName()

QString gpsReceiverName ( GPSType  type)

◆ gpsReceiverPresentation()

const GPSReceiverPresentation & gpsReceiverPresentation ( int  manufacturer)

◆ gpsReceiverTypeForManufacturer()

std::optional< GPSType > gpsReceiverTypeForManufacturer ( int  manufacturer)

The family a persisted manufacturer selects, GPSType::automatic for GPS_AUTOMATIC_MANUFACTURER; empty when unknown.

Definition at line 130 of file GPSReceiverDescriptor.cc.

References GPS_AUTOMATIC_MANUFACTURER, and gpsReceiverDescriptorForManufacturer().