Skip to content

Fix RX filter flag showing 0.1 kHz less than selected preset (#794)#881

Merged
ten9876 merged 1 commit into
aethersdr:mainfrom
AetherClaude:aetherclaude/issue-794
Apr 6, 2026
Merged

Fix RX filter flag showing 0.1 kHz less than selected preset (#794)#881
ten9876 merged 1 commit into
aethersdr:mainfrom
AetherClaude:aetherclaude/issue-794

Conversation

@AetherClaude

Copy link
Copy Markdown
Collaborator

Summary

Fixes #794

  • For SSB-like modes (USB/LSB/DIGU/DIGL/FDV), the filter width label now shows the nominal filter edge value (hi-cut for USB-like, abs(lo-cut) for LSB-like) instead of hi - lo, which was 95 Hz less due to the intentional 95 Hz low-cut offset
  • Updated both VfoWidget::updateFilterLabel() and RxApplet::formatFilterWidth() with mode-aware width calculation
  • Filter label now also refreshes on mode change so the display stays correct when switching modes

Details

When selecting a preset RX filter (e.g. 2.7K), the radio sets lo=95, hi=2700 (USB) or lo=-2700, hi=-95 (LSB). The old code displayed hi - lo = 2605, which rounds to "2.6K" — 0.1 kHz less than the selected "2.7K" preset. The fix displays the filter edge value directly (2700 → "2.7K"), matching SmartSDR behavior.

CW/AM/SAM/DSB/RTTY modes are unaffected (symmetric filters where hi - lo is already correct).

Files changed

File Change
src/gui/VfoWidget.cpp Mode-aware updateFilterLabel(), refresh on mode change
src/gui/RxApplet.cpp Mode-aware formatFilterWidth(), pass mode to callers, refresh on mode change
src/gui/RxApplet.h Add optional mode parameter to formatFilterWidth()

Test plan

  • Select USB mode, choose 2.7K/2.9K/3.3K preset filters — flag should show 2.7K/2.9K/3.3K (not 2.6K/2.8K/3.2K)
  • Same test in LSB/DIGU/DIGL modes
  • Manually drag filter edges — label should still update correctly
  • CW/AM modes — verify symmetric filter display unchanged
  • Switch modes (e.g. USB→LSB→CW) — filter label updates correctly

🤖 Generated with Claude Code

…dr#794)

For SSB-like modes (USB/LSB/DIGU/DIGL/FDV), display the nominal filter
edge value (hi-cut or abs(lo-cut)) instead of the passband width
(hi - lo), which was 95 Hz less due to the intentional low-cut offset.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ten9876 ten9876 marked this pull request as ready for review April 6, 2026 19:13
@ten9876 ten9876 self-requested a review as a code owner April 6, 2026 19:13
@ten9876 ten9876 merged commit d841429 into aethersdr:main Apr 6, 2026
5 checks passed
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.

RX filter flag shows 0.1 kHz less than the selected value in v0.8.3

2 participants