Implements ALC and balances power in different modes#412
Open
rkayakr wants to merge 4 commits intodrexjj:devfrom
Open
Implements ALC and balances power in different modes#412rkayakr wants to merge 4 commits intodrexjj:devfrom
rkayakr wants to merge 4 commits intodrexjj:devfrom
Conversation
This reverts commit 7b38926. restore ssb_val
Owner
|
This has too many changes and duplicates part of a previous PR you submitted. Please modify or simplify it and resubmit. |
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.
ALC is implemented on two levels
global - any transmission that maxes bridge voltage reading (> 42 watts) trips big reduction
A message is written to the console when either alc is activated
In both cases power under limit causes alc_level releases by .01 increase per bridge voltage read cycle (about 100 ms).
For example a small band over limit will fully release in less than 1 s.
Per band maximum watts power limits were added to hw_settings.ini with the label max_watts matching the variable name in the preexisting band structure.
Limits will be different for V2 and V3 versions. For V3 you can use max powers in
https://docs.google.com/document/d/1HvpgnS6zuPcygxmB6lvFZztqSGPLlWYzVGHhytWvQG4/edit?tab=t.0
Power used in ALC limit calculation is immediate when a new voltage is read from the bridge, about every 100 ms.
Power reported for display is also immediate, but smoothed by exponential smoothing to reduce jitter
Previously power was only reported every 100 read_power calls, about once a second
Balancing power at same drive setting
CWR was producing far more power than CW at the same drive level
similar problem with LSB and USB
similar problem with SSB and other modes
Balance settings added to hw_settings.ini and used to balance power.
Defaults are set to 1.0.
CW/CWR cw_bal <1.0 reduces of CWR power vs Cw
USB/LSB ssb_bal <1.0 reduces LSB power vs USB
CW/SSB ssb_val <1.0 reduces SSB power vs other modes
ssb_val now balances SSB with other modes. Previously ssb_val also changed CW output
example: my hw_settings.ini
ssb_val=0.75
cw_bal=0.856
ssb_bal=0.71