shell_printf("\n\rStarting with %4.2f, %4.2f and IF at %D and step of %D\n\r",p2,p1,setting.frequency_IF,setting.frequency_step);
while(f<DEFAULT_MAX_FREQ&&!global_abort){
shell_printf("\n\rStarting with average of %4.2f and IF at %DHz and step of %DHz till %DHz\n\r",average,setting.frequency_IF,setting.frequency_step,end_freq);
// while (f < DEFAULT_MAX_FREQ && !global_abort) {
while(f<end_freq&&!global_abort){
if((k++%1000)==0)
shell_printf("Pass %d, freq %D\n\r",j,f);
shell_printf("Pass %d, freq %D\r",j,f);
intr=0;
do{
p=PURE_TO_float(perform(false,1,f,false));
@ -5876,18 +5882,15 @@ quit:
#else
#define SPUR_DELTA 15
#endif
// shell_printf("%ld %4.2f\n\r", f, p);
// if ( p2 < p1 - SPUR_DELTA && p < p1 - SPUR_DELTA) {
}while(p2<p-SPUR_DELTA&&r++<4);
}while(average+SPUR_DELTA<p&&r++<4);
if(r>=4){
shell_printf("Pass %d, spur of %4.2f at %D with count %d\n\r",j,p,f/1000,add_spur(f));
shell_printf("Pass %d, spur of %4.2f at %DkHz with count %d\n\r",j,p,f/1000,add_spur(f));
}
p2=(p2*9+p1)/10;
p1=p;
average=(average*19+p)/20;
f+=setting.frequency_step;
}
}
shell_printf("\n\rTable for IF at %d and step of %d\n\r",setting.frequency_IF,setting.frequency_step);
shell_printf("\n\rTable for IF at %D and step of %D\n\r",setting.frequency_IF,setting.frequency_step);