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.
Adjusts the power of the TX based on RSSI and LQ from telemetry packets. When using dynamic power the power level set on the radio is treated as the maximum to be used, and the actual power will be reduced from that according to the signal strength at the receiver.
Enable by adding #define USE_DYNAMIC_POWER to user_config.h
The thresholds and filter speed are set via #defines in main.cpp
DYN_POWER_INCREASE_MARGIN - relative to the rsSensitivity of the current packet rate mode
DYN_POWER_DECREASE_MARGIN - relative to the above threshold
DYN_POWER_LQ_THRESHOLD - LQ below which power will be gradually increased
DYN_POWER_LQ_PANIC_THRESHOLD - LQ below which power will be set directly to configured max
DYN_POWER_MISSED_TELEM_PACKET_THRESHOLD - The number of consecutive missed telemetry packets that will trigger a transition to the configured max power
DYN_POWER_RSSI_FILTER_CUTOFF_HZ - The filter cuttoff frequency for smoothing the RSSI values. Smaller values will produce a slower response when reducing power. Increases in power happen immediately.