Enable Narrow and Lite regions for EU#10120
Merged
Merged
Conversation
…age based on regionProfile settings
…efaultMsScaled calls
Collaborator
Author
|
oops - forgot to put the modem settings in! |
…bufs Update protobufs and classes
…presets Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
This was referenced May 1, 2026
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds new EU-focused LoRa region + modem presets and wires them through radio configuration, UI pickers, and traffic scaling so position/telemetry intervals can be region-throttled.
Changes:
- Introduces new region profiles/presets (EU_866 + narrow EU 868) and adds
defaultPreset+overrideSlotsemantics for region configs. - Adds region-aware traffic throttling via a new
Default::getConfiguredOrDefaultMsScaled(..., TrafficType)overload and updates position/telemetry modules to use it. - Updates InkHUD + classic UI menus to list/select the new regions/presets, and adds tests for the new “preset-hash” slot-selection mode.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/test_admin_radio/test_main.cpp | Extends radio/admin unit tests for new override-slot semantics and slot-hash formula. |
| src/modules/Telemetry/PowerTelemetry.cpp | Uses region-aware telemetry scaling. |
| src/modules/Telemetry/HealthTelemetry.cpp | Uses region-aware telemetry scaling. |
| src/modules/Telemetry/EnvironmentTelemetry.cpp | Uses region-aware telemetry scaling. |
| src/modules/Telemetry/DeviceTelemetry.cpp | Uses region-aware telemetry scaling. |
| src/modules/Telemetry/AirQualityTelemetry.cpp | Uses region-aware telemetry scaling (incl. sensor wake/sleep timing). |
| src/modules/PositionModule.cpp | Uses region-aware position scaling. |
| src/modules/CannedMessageModule.cpp | Updates preset switch handling to use new preset macro names. |
| src/modules/AdminModule.cpp | Uses effective duty-cycle logic when deciding MQTT defaults. |
| src/mesh/Router.cpp | Uses effective duty-cycle logic when enforcing duty-cycle send limits. |
| src/mesh/RadioInterface.cpp | Adds new regions/profiles/presets, override-slot selection logic, and effective duty-cycle helper. |
| src/mesh/MeshRadio.h | Adds preset macro/override-slot constants, new presets, and RegionInfo::defaultPreset. |
| src/mesh/Default.h | Introduces TrafficType and new scaled-interval overload signature. |
| src/mesh/Default.cpp | Implements region throttle multiplier for position vs telemetry. |
| src/graphics/niche/InkHUD/Applets/System/Menu/MenuApplet.cpp | Adds new regions and dynamically builds preset list from the active region. |
| src/graphics/niche/InkHUD/Applets/System/Menu/MenuAction.h | Adds actions for new regions/preset selection mode. |
| src/graphics/draw/UIRenderer.cpp | Updates preset switch cases to new preset macro names. |
| src/graphics/draw/MenuHandler.cpp | Adds new regions and dynamically builds preset picker from the active region. |
| src/DisplayFormatters.cpp | Adds display names for new modem presets. |
| src/airtime.cpp | Uses effective duty-cycle logic for TX air-util gating. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some new presets for a wider range of operations in the EU, based on #9038 but with improvements to the position and telemetry scaling implementation.
Relies on meshtastic/protobufs#824 for protobufs (as before)
What has changed?
What is needed to integrate these changes more widely
Acknowledgements
This change has been supported extensively by @Stary2001, @phaseloop, and @caveman99. Their input cannot be understated.
🤝 Attestations