LR1121 power correction mechanism#3
Merged
interfer merged 1 commit intoaeronetix_lr1121from Jun 20, 2025
Merged
Conversation
337a8ed to
41442c9
Compare
…UART target Can be turned of with `apply_power_correction: false` in target JSON Signed-off-by: Dmytro Huz <diman1436@gmail.com>
41442c9 to
59f86fe
Compare
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.
Add Frequency-Dependent Power Correction for LR1121 (Aeronetix 5W)
Summary
This PR introduces a frequency-dependent output power correction mechanism for the Aeronetix LR1121 5W target to improve TX's power curve. The driver now applies a correction (in dBm) to the requested output power based on the current transmission frequency, using a table of integer correction values defined in the hardware configuration JSON.
NOTE: Feature supported across all Aeronetix LR-based targets but currently safely tested only on
Aeronetix_ESP32_LR1121_5W_TX_via_UARTtargetKey Changes
New
freq_power_tablein Hardware JSON:The hardware configuration now includes a
freq_power_tablearray, mapping frequency (MHz) to integer dBm correction values.Example:
Driver Support for Power Correction:
freq_power_tableat startup.Debug Output:
Backward Compatibility:
freq_power_tableis present, the driver defaults to no correction."apply_power_correction"set tofalse, correction won't be used as well.Improved Output Power Accuracy:
The LR1121’s output power varies with frequency. This mechanism ensures more consistent and accurate output power across the supported frequency range, improving performance and regulatory compliance.