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)
inlinenodiscard

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(), Wire::decode(), and Wire::SIZE.

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,
.signature = &signature,
}
std::unique_ptr< GPSFamilyProtocol > gpsCreateProtocol()
The create of a family whose protocol is default-constructed: .create = &gpsCreateProtocol<Protocol>.
@ 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
Probing order of the automatic baud detection.
Definition UBXPlan.h:124

Definition at line 352 of file SBFProtocol.cc.

◆ SYNC1

uint8_t SBF::SYNC1 = 0x24
inlineconstexpr

Definition at line 17 of file SBFBlocks.h.

◆ SYNC2

uint8_t SBF::SYNC2 = 0x40
inlineconstexpr

Definition at line 18 of file SBFBlocks.h.