1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-29 10:06:47 +02:00
ben-wpan/usrp/evscan
Werner Almesberger 83d216244c usrp: support DCT in addition to complex FFT
- usrp/evscan (usage, main): treat all arguments but the last as options
  and pass them to "fft"
- usrp/fft.c (fft_complex, do_fft): moved actual FFT calculation to
  separate function
- usrp/fft.c (fft_real, do_fft): added real-valued FFT (DCT) as alternative
- usrp/fft.c (main): undocumented option -a to set the FFT algorithm
2010-11-26 12:16:34 -03:00

24 lines
358 B
Bash
Executable File

#!/bin/sh
usage()
{
echo "usage: $0 [options] base-dir" 1>&2
exit 1
}
[ "$1" ] || usage
opts=
while [ "$2" ]; do
opts="$opts $1"
shift
done
[ -d "$1" ] || usage
for f in "$1"/24*; do
echo -n `basename "$f"` ''
for n in "$f"/data*; do
./fft $opts -s 100 0 20 50 <"$n" || echo "fft failed for $n" 1>&1
done | ./range -v 2
done