|
|
|
|
@ -1666,8 +1666,8 @@ pureRSSI_t perform(bool break_on_operation, int i, uint32_t f, int tracking)
|
|
|
|
|
modulation_delay += config.cor_nfm; // -17 default
|
|
|
|
|
// modulation_index = 0; // default value
|
|
|
|
|
}
|
|
|
|
|
if ((setting.mode == M_GENLOW && f > 480000000 - DEFAULT_IF) ||
|
|
|
|
|
(setting.mode == M_GENHIGH && f > 480000000) )
|
|
|
|
|
if ((setting.mode == M_GENLOW && f > ((uint32_t)480000000) - DEFAULT_IF) ||
|
|
|
|
|
(setting.mode == M_GENHIGH && f > ((uint32_t)480000000) ) )
|
|
|
|
|
modulation_index += 2;
|
|
|
|
|
current_fm_modulation = (int *)fm_modulation[modulation_index];
|
|
|
|
|
f -= fm_modulation_offset[modulation_index]; // Shift output frequency
|
|
|
|
|
@ -1725,13 +1725,14 @@ modulation_again:
|
|
|
|
|
if (/* MODE_INPUT(setting.mode) && */ i > 0 && FREQ_IS_CW()) // In input mode in zero span mode after first setting of the LO's
|
|
|
|
|
goto skip_LO_setting; // No more LO changes required, save some time and jump over the code
|
|
|
|
|
|
|
|
|
|
int32_t local_IF;
|
|
|
|
|
uint32_t local_IF;
|
|
|
|
|
|
|
|
|
|
again: // Spur reduction jumps to here for second measurement
|
|
|
|
|
|
|
|
|
|
if (MODE_HIGH(setting.mode))
|
|
|
|
|
local_IF=0; // to get rid of warning
|
|
|
|
|
if (MODE_HIGH(setting.mode)) {
|
|
|
|
|
local_IF = 0;
|
|
|
|
|
else if (MODE_LOW(setting.mode)){ // All low mode
|
|
|
|
|
} else if (MODE_LOW(setting.mode)){ // All low mode
|
|
|
|
|
if (!setting.auto_IF) {
|
|
|
|
|
local_IF = setting.frequency_IF;
|
|
|
|
|
}
|
|
|
|
|
@ -1949,13 +1950,14 @@ static bool sweep(bool break_on_operation)
|
|
|
|
|
{
|
|
|
|
|
float RSSI;
|
|
|
|
|
int16_t downslope;
|
|
|
|
|
#ifdef __SI4432__
|
|
|
|
|
uint32_t agc_peak_freq = 0;
|
|
|
|
|
float agc_peak_rssi = -150;
|
|
|
|
|
float agc_prev_rssi = -150;
|
|
|
|
|
int last_AGC_value = 0;
|
|
|
|
|
uint8_t last_AGC_direction_up = false;
|
|
|
|
|
int AGC_flip_count = 0;
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
// if (setting.mode== -1)
|
|
|
|
|
// return;
|
|
|
|
|
// START_PROFILE;
|
|
|
|
|
@ -3537,7 +3539,7 @@ void self_test(int test)
|
|
|
|
|
setting.frequency_step = 30000;
|
|
|
|
|
if (setting.test_argument > 0)
|
|
|
|
|
setting.frequency_step=setting.test_argument;
|
|
|
|
|
int f = 400000; // Start search at 400kHz
|
|
|
|
|
uint32_t f = 400000; // Start search at 400kHz
|
|
|
|
|
// int i = 0; // Index in spur table (temp_t)
|
|
|
|
|
set_RBW(setting.frequency_step/100);
|
|
|
|
|
last_spur = 0;
|
|
|
|
|
|