feat: Add Brazil Regulatory Domain (ANATEL 915MHz)#1
Draft
feat: Add Brazil Regulatory Domain (ANATEL 915MHz)#1
Conversation
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.
Motivation
Description
BR915and a domain indexDOMAIN_ISM_BR_915, and introduced a static frequency lookupFHSSfreqsISM_BR_915[]with 40 explicit channel frequencies split across 902–907.5 MHz and 915–926.9 MHz, plus a selector flagFHSSuseFreqTableBR915(changes insrc/lib/FHSS/FHSS.cppandsrc/lib/FHSS/FHSS.h).FHSSgetInitialFreq,FHSSgetNextFreq, Gemini path) to use the BR915 lookup table when the new domain is active, falling back to existing linear interpolation for other domains (src/lib/FHSS/FHSS.h).Regulatory_Domain_ISM_BR_915and added an example entry insrc/user_defines.txt(src/include/targets.h,src/user_defines.txt).ism_br_915maps to the new domain index and the build flag processing sets the correct domain id (src/python/binary_configurator.py,src/python/build_flags.py).Testing
python -m py_compile src/python/build_flags.py src/python/binary_configurator.pyand the files compiled successfully.FHSSfreqsISM_BR_915[]and confirmed there are40entries and that none fall inside907500000–915000000(result:count 40,in_gap False).Codex Task