@ -1275,7 +1275,7 @@ static const int wfm_modulation[5] = { 0, 190, 118, -118, -190 }; // 5 step wi
charage[POINTS_COUNT];
charage[POINTS_COUNT];
staticfloatold_a=-150;
staticfloatold_a=-150;
systime_tmeasure;
systime_tstart_of_sweep_timestamp;
floatperform(boolbreak_on_operation,inti,uint32_tf,inttracking)// Measure the RSSI for one frequency, used from sweep and other measurement routines. Must do all HW setup
floatperform(boolbreak_on_operation,inti,uint32_tf,inttracking)// Measure the RSSI for one frequency, used from sweep and other measurement routines. Must do all HW setup
{
{
@ -1285,7 +1285,7 @@ float perform(bool break_on_operation, int i, uint32_t f, int tracking) // M
dirty=false;
dirty=false;
if(setting.spur)// if in spur avoidance mode
if(setting.spur)// if in spur avoidance mode
setting.spur=1;// resync spur in case of previous abort
setting.spur=1;// resync spur in case of previous abort
measure=chVTGetSystemTimeX();// initialize again to eliminate time spend in apply_settings
start_of_sweep_timestamp=chVTGetSystemTimeX();// initialize again to eliminate time spend in apply_settings
}
}
if(setting.mode==M_GENLOW&&setting.level_sweep!=0.0){// if in low output mode and level sweep is active
if(setting.mode==M_GENLOW&&setting.level_sweep!=0.0){// if in low output mode and level sweep is active
@ -1631,7 +1631,7 @@ again: // Waiting for a trigger jumps back to here
}
}
setting.measure_sweep_time_us=0;// start measure sweep time
setting.measure_sweep_time_us=0;// start measure sweep time
measure=chVTGetSystemTimeX();
start_of_sweep_timestamp=chVTGetSystemTimeX();
sweep_again:// stay in sweep loop when output mode and modulation on.
sweep_again:// stay in sweep loop when output mode and modulation on.
@ -1771,7 +1771,7 @@ sweep_again: // stay in sweep loop when output mo
// ---------------------- process measured actual sweep time -----------------
// ---------------------- process measured actual sweep time -----------------