175,7 → 175,7 |
unsigned int maxval = (1 << (snd_pcm_format_width(format) - 1)) - 1; |
|
static const float f0 = 5000; //starting frequency |
static const float fmax = 7500; //ending frequency |
static const float fmax = 10000; //ending frequency |
static const float Tw = 0.0015; |
static float k; |
|
383,7 → 383,7 |
out=fopen("/tmp/sonar.txt","w"); |
for (i=0; i <= (period_size - 1); i++) |
{ |
fprintf(out,"%6d %6d %6d %9ld %9ld\n",i,L_signal[i],R_signal[i],correlationl[i], correlationr[i]); |
fprintf(out,"%2.3f %6d %6d %9ld %9ld\n",SOUND_SPEED * (float) i / rate,L_signal[i],R_signal[i],correlationl[i], correlationr[i]); |
} |
fclose(out); |
|