QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSConfig Struct Reference

The receiver configuration requested for one configure() attempt. More...

#include <GPSFamilyProtocol.h>

+ Collaboration diagram for GPSConfig:

Public Member Functions

unsigned linkBaud (unsigned requested, unsigned fallback) const
 The rate a family without a baud search runs the link at: requested, else detectedBaud, else fallback.
 

Public Attributes

GPSBaseStationConfig base {}
 
bool allowPersistentChanges = false
 
unsigned detectedBaud = 0
 

Detailed Description

The receiver configuration requested for one configure() attempt.

Definition at line 36 of file GPSFamilyProtocol.h.

Member Function Documentation

◆ linkBaud()

unsigned GPSConfig::linkBaud ( unsigned  requested,
unsigned  fallback 
) const
inline

The rate a family without a baud search runs the link at: requested, else detectedBaud, else fallback.

Definition at line 46 of file GPSFamilyProtocol.h.

References detectedBaud.

Member Data Documentation

◆ allowPersistentChanges

bool GPSConfig::allowPersistentChanges = false

Definition at line 39 of file GPSFamilyProtocol.h.

◆ base

GPSBaseStationConfig GPSConfig::base {}

Definition at line 38 of file GPSFamilyProtocol.h.

◆ detectedBaud

unsigned GPSConfig::detectedBaud = 0

A rate receiver detection just found the receiver at. When configure() gets no rate, a baud search (GPSCommandChannel::detectBaud()) tries this rate first, even one the family does not list, and a family without one runs the link at it (linkBaud()).

Definition at line 43 of file GPSFamilyProtocol.h.

Referenced by linkBaud().


The documentation for this struct was generated from the following file: