diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-02-25 11:17:24 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-02-25 11:17:24 +0100 |
commit | 1be4803d9f1a20c61d9bccb7b724e3ee67e17670 (patch) | |
tree | e8d8dba4590288bdc21ee68676cae2f8e6603141 /sw/dart-70 | |
parent | 2240e0b6683bcb69b1f477f4449de9cc17314ccd (diff) | |
download | picardy-1be4803d9f1a20c61d9bccb7b724e3ee67e17670.tar.gz picardy-1be4803d9f1a20c61d9bccb7b724e3ee67e17670.tar.bz2 picardy-1be4803d9f1a20c61d9bccb7b724e3ee67e17670.zip |
Adapt README and schematic notes
Diffstat (limited to 'sw/dart-70')
-rw-r--r-- | sw/dart-70/src/state.rs | 11 |
1 files changed, 3 insertions, 8 deletions
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 |