Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio Master 900 Bandit Nano Power output interpolation #4057

Merged
merged 10 commits into from
Jun 9, 2024
Merged

Radio Master 900 Bandit Nano Power output interpolation #4057

merged 10 commits into from
Jun 9, 2024

Conversation

gjelsoe
Copy link
Contributor

@gjelsoe gjelsoe commented Jun 9, 2024

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.

@gjelsoe gjelsoe closed this Jun 9, 2024
@gjelsoe gjelsoe reopened this Jun 9, 2024
@thebentern thebentern merged commit a2fb3d2 into meshtastic:master Jun 9, 2024
83 of 84 checks passed
slash-bit pushed a commit to slash-bit/meshtastic-echo-echo that referenced this pull request Jul 4, 2024
)

* DAC and DB values based on dBm using interpolation

* Moved getDACandDB funtion

Moved getDACandDB funtion up so it won't conflict with RF95_MAX_POWER

* Added DAC output to LOG_INFO

Added DAC output to LOG_INFO

* Make Trunk Happy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants