RadioLink

RadioLink class for managing radio data link configuration and telemetry.

#include <radio_link.hpp>

Classes

class RadioLink

SDK handle for a single radio data link's configuration and telemetry.

Instances are created and owned by the Vehicle. Obtain them via `DataLinksController::GetDataLinks()`.

struct ChannelEntry

A single entry in the radio's channel/frequency table.

FieldTypeDescription
channel uint8_t channel index
frequency_mhz uint32_t center frequency in MHz
~RadioLink()

Destroys the RadioLink handle.

auto ApplyConfig(uint8_t channel, float bandwidth_mhz, float tx_power_dbm) -> int

Applies channel, bandwidth, and TX power changes to the radio.

ParameterTypeDescription
channel uint8_t Target channel index.
bandwidth_mhz float Target channel bandwidth in MHz.
tx_power_dbm float Target transmit power in dBm.

Returns: 0 on success, 1 if a full restart is required (call `ForceApplyConfig`), -1 on error.

auto ForceApplyConfig(uint8_t channel, float bandwidth_mhz, float tx_power_dbm) -> bool

Applies configuration changes via a full radio restart (approximately 30 seconds).

ParameterTypeDescription
channel uint8_t Target channel index.
bandwidth_mhz float Target channel bandwidth in MHz.
tx_power_dbm float Target transmit power in dBm.

Returns: true on success, false on error.

Structs

struct RadioStatus

Atomic snapshot of radio link telemetry and configuration.

Note:

`link_mode`, `frequency_band`, `encryption_type`, and `pairing_state` are `uint8_t` placeholders; they will become typed SDK enums in a future release.

FieldTypeDescription
rssi_dbm float RSSI in dBm
signal_quality int 0-100
temperature_c float radio internal temperature, Celsius
voltage_v float radio supply voltage
cpu_percent float radio CPU load %
memory_percent float radio memory load %
connected_nodes uint8_t nodes in the mesh
api_connected bool radio's API layer reachable
channel uint8_t active channel index
bandwidth_mhz float channel bandwidth in MHz
tx_power_dbm float transmit power in dBm
frequency_band uint8_t FrequencyBand enum (placeholder)
link_mode uint8_t LinkMode enum (placeholder)
encryption_type uint8_t EncryptionType enum (placeholder)
pairing_state uint8_t PairingState enum (placeholder)
capabilities uint32_t bitmask of RadioCapability flags
valid bool false until first poll succeeds