From 1be4803d9f1a20c61d9bccb7b724e3ee67e17670 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 25 Feb 2023 11:17:24 +0100 Subject: Adapt README and schematic notes --- sw/dart-70/src/state.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sw') diff --git a/sw/dart-70/src/state.rs b/sw/dart-70/src/state.rs index 08826e7..8491cca 100644 --- a/sw/dart-70/src/state.rs +++ b/sw/dart-70/src/state.rs @@ -1,6 +1,5 @@ -pub const VHF_BAND_EDGE : u32 = 144_000_000; -pub const VHF_INITIAL_VFO : u32 = 144_300_000; -pub const VHF_LO : u32 = 114_284_800; +pub const VHF_BAND_EDGE : u32 = 70_000_000; +pub const VHF_INITIAL_VFO : u32 = 70_300_000; pub const BFO_LSB : u32 = 6_000_700 + 1_100; pub const BFO_USB : u32 = 6_000_700 - 1_100; pub const BFO_CW : u32 = 6_000_700 - 1_100; @@ -111,17 +110,13 @@ impl State { } } - pub fn if_qrg(&self) -> u32 { - self.vhf_qrg() - VHF_LO - } - pub fn vfo(&self) -> u32 { let cw_offset = match self.sequence_state { SequenceState::SwitchingCW | SequenceState::TxCW => 500, _ => 0, }; - let vfo = (self.if_qrg() - self.bfo()) as i32 + + let vfo = (self.vhf_qrg() - self.bfo()) as i32 + if self.sequence_state.apply_rit() { self.rit } else { 0 } + cw_offset; vfo as u32 -- cgit v1.2.3