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.
| Field | Type | Description |
|---|---|---|
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) -> intApplies channel, bandwidth, and TX power changes to the radio.
| Parameter | Type | Description |
|---|---|---|
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) -> boolApplies configuration changes via a full radio restart (approximately 30 seconds).
| Parameter | Type | Description |
|---|---|---|
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.
`link_mode`, `frequency_band`, `encryption_type`, and `pairing_state` are `uint8_t` placeholders; they will become typed SDK enums in a future release.
| Field | Type | Description |
|---|---|---|
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 |