Skip to content

Fix one-leg Doppler to freeze the radio leg in place - #283

Open
magicbug wants to merge 1 commit into
mainfrom
cursor/one-leg-doppler-frozen-leg-0c28
Open

magicbug wants to merge 1 commit into
mainfrom
cursor/one-leg-doppler-frozen-leg-0c28

Conversation

@magicbug

Copy link
Copy Markdown
Owner

Summary

TX-fixed and RX-fixed Doppler now follow classic one-leg correction: selecting the mode leaves the chosen leg on whatever frequency is already on the radio, and only the other leg is Doppler-tracked. Full (both legs) is unchanged.

Behaviour

  • TX-fixed (DownlinkOnly): Uplink stays on the current radio TX frequency when you press TX. Downlink continues Doppler correction. Satellite motion alone does not reprogram the uplink.
  • RX-fixed (UplinkOnly): Downlink stays on the current radio RX frequency when you press RX. Uplink continues Doppler correction. Symmetrical with TX-fixed.
  • Operator changes on the frozen leg: TX/RX offsets, passband trim, and receive-dial retune still move the frozen leg and write CAT when needed.
  • Frequency panel: Radio TX / Radio RX for the frozen leg show the rig’s actual frequency (from CAT status), not the Doppler-free satellite nominal. Satellite rows are unchanged.
  • Return to Full: Both legs resume normal Doppler correction.
  • Interactive defer: Deferred sub-VFO writes no longer queue a stale uplink snap when switching into TX-fixed without an operator change.

Tests

New RigControllerOneLegDopplerTests cover:

  • Press TX and press RX (no immediate reprogram of frozen leg; other leg tracks motion)
  • Offset change while frozen (TX and RX)
  • Receive dial retune while TX-fixed
  • Return to Full

FrequencyOverlayViewModelTests.Tx_fixed_radio_row_shows_rig_uplink_not_doppler_free_nominal checks the panel row.

Verification

dotnet test OscarWatch.Tests/OscarWatch.Tests.csproj --filter "FullyQualifiedName~RigControllerOneLegDoppler|FullyQualifiedName~Dual_linear_tx_fixed|FullyQualifiedName~Tx_fixed_radio_row"

7 targeted tests passed.

dotnet test OscarWatch.Tests/OscarWatch.Tests.csproj --filter "FullyQualifiedName~RigController|FullyQualifiedName~RigDoppler|FullyQualifiedName~DopplerPhysics|FullyQualifiedName~FrequencyOverlay"

182 related tests passed (build included).

Open in Web Open in Cursor 

TX-fixed and RX-fixed no longer force a CAT write when the mode is selected; the frozen leg keeps the frequency already on the radio while the other leg continues Doppler correction. Operator changes (offsets, passband trim, receive dial retune) still update the frozen leg. The frequency panel and rig status show the actual frozen dial frequency.

Co-authored-by: Peter Goodhall <magicbug@users.noreply.github.com>
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