Skip to content

Modulation/Band consolidation - #3587

Merged
pkendall64 merged 18 commits into
ExpressLRS:masterfrom
pkendall64:4.1/modulation-consolidation
Apr 15, 2026
Merged

pkendall64 merged 18 commits into
ExpressLRS:masterfrom
pkendall64:4.1/modulation-consolidation

Conversation

@pkendall64

Copy link
Copy Markdown
Collaborator

This PR builds on the last two. So this is part 3 of 3.

What it does...

  1. Introduces new enums for the band radio_band_t and the modulation radio_modulation_t, also a composite enum radio_band_modulation_t used in the AirRateConfig table.
  2. These enums allow us to be a little more type safe and also allow radios to determine how to handle the modulation rather than have a bunch of bools passed down to the radio drivers.
  3. Adds simple inline helper functions for isLoRaModulation, isFLRCModulation and isGFSKModulation. We can add more as new radios require.
  4. The above greatly simplifies the logic in TXModuleParameters.cpp and also isSupportedRFRate in common.cpp

@pkendall64 pkendall64 added house keeping 🧹 Cleanup of code and house keeping V4.1 🍑 labels Mar 26, 2026

@mha1 mha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ok on all compatible bands/modes using with Nomad, BayckRC DB Gemini RX, SuperP.

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy to provide these changes if desired as I have already made them locally. I believe it cleans up a lot & RADIO_BAND_MASK code as well which if you disagree with my implementation I think should still be done using your types.

Comment thread src/lib/LR1121Driver/LR1121.cpp Resolved
Comment thread src/lib/tx-crsf/TXModuleParameters.cpp Resolved
CapnBry added 2 commits April 14, 2026 13:26
* Antenna mode based on BDUAL not LORA_DUAL
* Pedantic sizeof buff instead of 1
* Fix SX1280 compile / tests
@pkendall64
pkendall64 merged commit 6cd45f5 into ExpressLRS:master Apr 15, 2026
26 checks passed
@pkendall64
pkendall64 deleted the 4.1/modulation-consolidation branch April 15, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

house keeping 🧹 Cleanup of code and house keeping V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants