QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SBF Namespace Reference

Septentrio receivers configured as RTK bases with SBF commands; they stream PVTGeodetic blocks and RTCM3. More...

Namespaces

namespace  BlockId
 
namespace  Plan
 

Classes

struct  BlockHeader
 Starts every block. The CRC covers id through the end of the block; length counts the whole block. More...
 
struct  PVTGeodetic
 

Functions

std::optional< BlockHeader > checkedHeader (std::span< const uint8_t > block)
 The header of a block candidate whose length fits the candidate and whose CRC matches; nullopt otherwise.
 

Variables

const GPSReceiverFamily FAMILY
 
constexpr uint8_t SYNC1 = 0x24
 
constexpr uint8_t SYNC2 = 0x40
 

Detailed Description

Septentrio receivers configured as RTK bases with SBF commands; they stream PVTGeodetic blocks and RTCM3.

Offsets count from a block's first sync byte, so a whole block decodes directly. Each layout ends at the last field QGC reads, which is the shortest block QGC can decode.

Function Documentation

◆ checkedHeader()

std::optional< BlockHeader > SBF::checkedHeader ( std::span< const uint8_t >  block)
inline

The header of a block candidate whose length fits the candidate and whose CRC matches; nullopt otherwise.

Definition at line 97 of file SBFBlocks.h.

References QGC::crc16Xmodem().

Variable Documentation

◆ FAMILY

const GPSReceiverFamily SBF::FAMILY
Initial value:
{
.type = GPSType::septentrio,
.logCategory = &SBFProtocolLog,
.stream = {.framers = GPSFrameKind::SBF | GPSFrameKind::RTCM3, .enabled = GPSFrameKind::SBF},
.baudCandidates = Plan::BAUD_RATES,
.create = &gpsCreateProtocol<Protocol>,
.signature = &signature,
}
@ SBF
Septentrio "$@" block candidates, up to the first 110 bytes; the decoder checks the CRC.
@ RTCM3
0xD3 frames with a valid CRC-24Q.
constexpr std::array BAUD_RATES
Rates the port query probes, in order. Trimble receivers default to 115200.
Definition AshtechPlan.h:31

Definition at line 352 of file SBFProtocol.cc.

◆ SYNC1

constexpr uint8_t SBF::SYNC1 = 0x24
inlineconstexpr

Definition at line 17 of file SBFBlocks.h.

◆ SYNC2

constexpr uint8_t SBF::SYNC2 = 0x40
inlineconstexpr

Definition at line 18 of file SBFBlocks.h.