pub struct SmartBeaconingConfig {
pub low_speed_kmh: f64,
pub high_speed_kmh: f64,
pub slow_rate_secs: u32,
pub fast_rate_secs: u32,
pub turn_slope: u16,
pub turn_min_deg: f64,
pub turn_time_secs: u32,
}Expand description
Configuration for the SmartBeaconing algorithm.
Matches the TH-D75 Menu 540-547 settings and the HamHUD SmartBeaconing
v2.1 parameter set.
Fields§
§low_speed_kmh: f64Speed threshold below which slow_rate is used (km/h). Default: 5.
Corresponds to TH-D75 Menu 540 (L Spd).
high_speed_kmh: f64Speed at/above which fast_rate is used (km/h). Default: 70.
Corresponds to TH-D75 Menu 541 (H Spd).
slow_rate_secs: u32Beacon interval when stopped/slow (seconds). Default: 1800 (30 min). Corresponds to TH-D75 Menu 542 (L Rate).
fast_rate_secs: u32Beacon interval at high speed (seconds). Default: 180 (3 min). Corresponds to TH-D75 Menu 543 (H Rate).
turn_slope: u16Turn slope scalar used in the speed-dependent turn threshold
formula turn_min + (turn_slope * 10) / speed_kmh. Default: 26.
Corresponds to TH-D75 Menu 544 (Turn Slope).
turn_min_deg: f64Minimum heading change for a turn beacon, in degrees. Applied as
the turn_min term in the threshold formula. Default: 28.
Corresponds to TH-D75 Menu 545 (Turn Thresh).
turn_time_secs: u32Minimum time between turn-triggered beacons (seconds). Default: 15. Corresponds to TH-D75 Menu 546 (Turn Time).
Trait Implementations§
Source§impl Clone for SmartBeaconingConfig
impl Clone for SmartBeaconingConfig
Source§fn clone(&self) -> SmartBeaconingConfig
fn clone(&self) -> SmartBeaconingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SmartBeaconingConfig
impl Debug for SmartBeaconingConfig
Source§impl Default for SmartBeaconingConfig
impl Default for SmartBeaconingConfig
Source§fn default() -> SmartBeaconingConfig
fn default() -> SmartBeaconingConfig
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 |