pub struct McpSmartBeaconingConfig {
pub low_speed: u8,
pub high_speed: u8,
pub slow_rate: u16,
pub fast_rate: u8,
pub turn_angle: u8,
pub turn_slope: u8,
pub turn_time: u8,
}Expand description
SmartBeaconing configuration.
SmartBeaconing adapts the beacon interval based on speed and course
changes. At high speed, beacons are sent more frequently; at low speed,
less frequently. Course changes trigger immediate beacons.
Settings correspond to the 7 parameters under the
APRS > SmartBeaconing menu on the TH-D75.
Fields§
§low_speed: u8Low speed threshold in mph (range 1-30). Below this speed,
beacons are sent at slow_rate.
high_speed: u8High speed threshold in mph (range 2-90). At or above this speed,
beacons are sent at fast_rate.
slow_rate: u16Slow beacon rate in seconds (range 1-100 minutes, stored as seconds).
fast_rate: u8Fast beacon rate in seconds (range 10-180 seconds).
turn_angle: u8Minimum course change in degrees to trigger a beacon (range 5-90).
turn_slope: u8Turn slope factor (range 1-255). Higher values require more speed before a turn triggers a beacon.
turn_time: u8Minimum time between turn-triggered beacons in seconds (range 5-180).
Trait Implementations§
Source§impl Clone for McpSmartBeaconingConfig
impl Clone for McpSmartBeaconingConfig
Source§fn clone(&self) -> McpSmartBeaconingConfig
fn clone(&self) -> McpSmartBeaconingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for McpSmartBeaconingConfig
impl Debug for McpSmartBeaconingConfig
Source§impl Default for McpSmartBeaconingConfig
impl Default for McpSmartBeaconingConfig
Source§impl From<McpSmartBeaconingConfig> for SmartBeaconingConfig
Converts a radio-memory SmartBeaconing config (mph/seconds) to the
runtime form (km/h / seconds / f64).
impl From<McpSmartBeaconingConfig> for SmartBeaconingConfig
Converts a radio-memory SmartBeaconing config (mph/seconds) to the
runtime form (km/h / seconds / f64).
Field mapping (all rates are in seconds on both sides):
| MCP field | Runtime field | Conversion |
|---|---|---|
low_speed | low_speed_kmh | mph → km/h (× 1.609_344) |
high_speed | high_speed_kmh | mph → km/h (× 1.609_344) |
slow_rate | slow_rate_secs | seconds (widened u16 → u32) |
fast_rate | fast_rate_secs | seconds (widened u8 → u32) |
turn_slope | turn_slope | widened u8 → u16 |
turn_angle | turn_min_deg | widened u8 → f64 |
turn_time | turn_time_secs | widened u8 → u32 |