Radio Master 900 Bandit Nano Power output interpolation #4057
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.
The Bandit Nano uses 4 different Power levels with DAC and dBm values:
100mW -> DAC = 168, dBm = 2
250mW -> DAC = 148, dBm = 6
500mW -> DAC = 128, dBm = 9
1000mW -> DAC = 90, dBm = 12
This PR attempts to make a DAC and DB values based on dBm using interpolation to get a linear power output
So entering 20 dBm will get you 100mW of output and 30 dBm will be 1000mW instead of having to change source code
for different power levels.