diff --git a/usrp/doall b/usrp/doall new file mode 100755 index 0000000..b0037a9 --- /dev/null +++ b/usrp/doall @@ -0,0 +1,11 @@ +#!/bin/bash -x +opts= +while [ "$2" ]; do + opts="$opts $1" + shift +done +a= +for n in $1; do + a="$a `basename $n`=<(./evscan $n)" +done +eval ./plscan $opts $a diff --git a/usrp/fft.c b/usrp/fft.c index 83755a5..d0cdd34 100644 --- a/usrp/fft.c +++ b/usrp/fft.c @@ -32,7 +32,7 @@ static void fft_complex(int n, const float *re, const float *im, double *res) for (i = 0; i != n; i++) { a = hypot(out[i][0], out[i][1])/n; - a = a*a; +// a = a*a; res[i] = a; } } diff --git a/usrp/plscan b/usrp/plscan index 9dd9a6e..40d462e 100755 --- a/usrp/plscan +++ b/usrp/plscan @@ -24,7 +24,14 @@ set title "Received signal strength" set data style errorlines plot \ `for n in $@; do - echo -n $comma \'$n\' title \'${n%.*}\' + if [ "$n" = "${n#*=}" ]; then + file=$n + title=${n%.*} + else + file=${n#*=} + title=${n%%=*} + fi + echo -n $comma \'$file\' title \'$title\' comma=, done` EOF