63,6 → 63,7 |
{ |
int i,n,m,delay; |
double r; |
FILE *out; |
|
linear_chirp(sample,SAMPLES,100,0); // vyrobi vzorek signalu |
linear_chirp(signal,SIGNAL_SAMPLES,500,1000); // vyrobi signal ve kterem se vzorek hleda |
81,15 → 82,15 |
} |
} |
|
|
out=fopen("output.txt",'w'); |
for(i=0;i<SAMPLES;i++) |
{ |
// fprintf(stdout,"%3u ",i); // vypise cislo bunky v poli (spozdeni) |
fprintf(stdout,"%2i ",sample[i]); |
// fprintf(stdout,"%2d ",signal[i]); |
// fprintf(stdout,"%3.2f\n",correlation[i]); // vypise hodnotu korelace nejvissi cislo je nejvetsi korelace. |
// fprintf(out,"%3.2f\n",correlation[i]); // vypise hodnotu korelace nejvissi cislo je nejvetsi korelace. |
} |
fprintf(stdout,"\nvzorek v signalu zacina na miste: %3u \n",delay); |
|
fclose(out); |
exit(1); |
} |