From eb89ad1d50fc27206dcedea640ccc0e4a1b0b84a Mon Sep 17 00:00:00 2001 From: km-foss Date: Wed, 24 Jun 2026 09:21:45 +1000 Subject: [PATCH] chore: Add Australia (Mid) Radio Preset This mirrors the config option from the official Meshcore app, and represents the preset now commonly in use in New South Wales. --- documentation/settings.md | 2 +- lib/models/radio_settings.dart | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/documentation/settings.md b/documentation/settings.md index a2f4192a..2e363ff6 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -52,7 +52,7 @@ These settings are sent directly to the connected device firmware. ### Radio Settings Opens a dialog pre-populated with the device's current radio settings. Contains: -- **Preset dropdown**: Regional presets — selecting a preset immediately fills all fields below. Includes presets for Australia, Australia (Narrow), Australia SA WA QLD, Czech Republic, EU 433MHz, EU/UK (Long Range), EU/UK (Medium Range), EU/UK (Narrow), New Zealand, New Zealand (Narrow), Portugal 433, Portugal 869, numerous Russia city presets, Switzerland, USA Arizona, USA/Canada, and Vietnam +- **Preset dropdown**: Regional presets — selecting a preset immediately fills all fields below. Includes presets for Australia, Australia (Narrow), Australia (Mid), Australia SA WA QLD, Czech Republic, EU 433MHz, EU/UK (Long Range), EU/UK (Medium Range), EU/UK (Narrow), New Zealand, New Zealand (Narrow), Portugal 433, Portugal 869, numerous Russia city presets, Switzerland, USA Arizona, USA/Canada, and Vietnam - **Frequency** (MHz): Free text, validated 300–2500 MHz - **Bandwidth**: Dropdown (7.8 / 10.4 / 15.6 / 20.8 / 31.25 / 41.7 / 62.5 / 125 / 250 / 500 kHz) - **Spreading Factor**: SF5–SF12 diff --git a/lib/models/radio_settings.dart b/lib/models/radio_settings.dart index e74cf209..6f5911e0 100644 --- a/lib/models/radio_settings.dart +++ b/lib/models/radio_settings.dart @@ -81,6 +81,16 @@ class RadioSettings { txPowerDbm: 20, ), ), + ( + 'Australia (Mid)', + RadioSettings( + frequencyMHz: 915.075, + bandwidth: LoRaBandwidth.bw125, + spreadingFactor: LoRaSpreadingFactor.sf9, + codingRate: LoRaCodingRate.cr4_5, + txPowerDbm: 20, + ), + ), ( 'Australia SA, WA, QLD', RadioSettings(