Shift error at 2MHz corrected

SI443_RBW_update
erikkaashoek 4 years ago
parent 589c9a5a36
commit db9f8a8f40

@ -979,10 +979,10 @@ config_t config = {
.low_level_output_offset = 100.0, // Uncalibrated .low_level_output_offset = 100.0, // Uncalibrated
.high_level_output_offset = 0, // Uncalibrated, but checking code is not yet present .high_level_output_offset = 0, // Uncalibrated, but checking code is not yet present
.harmonic_level_offset = 7, .harmonic_level_offset = 7,
.shift_level_offset = -0.5, .shift_level_offset = 0.5,
.drive1_level_offset = -1.5, .drive1_level_offset = 0,
.drive2_level_offset = -3, .drive2_level_offset = -1.5,
.drive3_level_offset = -3.5, .drive3_level_offset = -0.5,
.correction_frequency = .correction_frequency =
{ {
{ 10000, 100000, 1000000, 5000000, 15000000, 30000000, 145000000, 400000000, 720000000, 800000000, 800000001, 1519000000, 1527000000, 3000000000, 3500000000, 4000000000, 4500000000, 5000000000, 5500000000, 6000000000 }, // low in { 10000, 100000, 1000000, 5000000, 15000000, 30000000, 145000000, 400000000, 720000000, 800000000, 800000001, 1519000000, 1527000000, 3000000000, 3500000000, 4000000000, 4500000000, 5000000000, 5500000000, 6000000000 }, // low in

@ -1825,17 +1825,14 @@ pureRSSI_t get_frequency_correction(freq_t f) // Frequency dependent RSSI c
// ----------------- end duplication of code // ----------------- end duplication of code
// //
switch(actual_drive) { if (actual_drive >= 1)
case 1:
cv += float_TO_PURE_RSSI(config.drive1_level_offset); cv += float_TO_PURE_RSSI(config.drive1_level_offset);
break; if (actual_drive >= 2)
case 2:
cv += float_TO_PURE_RSSI(config.drive2_level_offset); cv += float_TO_PURE_RSSI(config.drive2_level_offset);
break; if (actual_drive >= 3)
case 3:
cv += float_TO_PURE_RSSI(config.drive3_level_offset); cv += float_TO_PURE_RSSI(config.drive3_level_offset);
break;
}
if (ultra && f > ultra_threshold) { if (ultra && f > ultra_threshold) {
c = CORRECTION_LOW_ULTRA; c = CORRECTION_LOW_ULTRA;
if (LO_harmonic) { if (LO_harmonic) {
@ -3630,7 +3627,7 @@ again: // Spur redu
#ifdef TINYSA4 #ifdef TINYSA4
if (lf<2000000) { // below 2MHz if (lf<2000000) { // below 2MHz
local_IF += DEFAULT_SPUR_OFFSET-(actual_rbw_x10 > 1000 ? 200000 : 0); // Shift to avoid zero Hz peak local_IF += DEFAULT_SPUR_OFFSET-(actual_rbw_x10 > 1000 ? 200000 : 0); // Shift to avoid zero Hz peak
LO_spur_shifted = true; LO_shifting = true;
} }
#else #else
local_IF = local_IF; // + DEFAULT_SPUR_OFFSET/2; // No spure removal and no spur, center in IF local_IF = local_IF; // + DEFAULT_SPUR_OFFSET/2; // No spure removal and no spur, center in IF

Loading…
Cancel
Save

Powered by TurnKey Linux.