Skip to content

Commit

Permalink
use frequency calibration when shifting 2.LO
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Feb 9, 2024
1 parent 15d893d commit 5136418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Software/VNA_embedded/.settings/stm32cubeide.project.prefs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
2F62501ED4689FB349E356AB974DBE57=EF826FD321FB312AEADE4DB74B81458C
2F62501ED4689FB349E356AB974DBE57=6F84FD31C089E822CF61FFCABCD0B7D1
66BE74F758C12D739921AEA421D593D3=2
8DF89ED150041C4CBC7CB9A9CAA90856=EF826FD321FB312AEADE4DB74B81458C
DC22A860405A8BF2F2C095E5B6529F12=A01929E06A3F8E0B7C263320E5AF494F
8DF89ED150041C4CBC7CB9A9CAA90856=6F84FD31C089E822CF61FFCABCD0B7D1
DC22A860405A8BF2F2C095E5B6529F12=E145D2B520F6278E1CA273AAD12F90E0
eclipse.preferences.version=1
1 change: 1 addition & 0 deletions Software/VNA_embedded/Application/VNA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ void VNA::SweepHalted() {
LOG_DEBUG("Halted before point %d", pointCnt);
bool adcShiftRequired = false;
uint64_t frequency = getPointFrequency(pointCnt);
frequency = Cal::FrequencyCorrectionToDevice(frequency);
int16_t power = settings.cdbm_excitation_start
+ (settings.cdbm_excitation_stop - settings.cdbm_excitation_start)
* pointCnt / (settings.points - 1);
Expand Down

0 comments on commit 5136418

Please sign in to comment.