1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

usrp/sps/: use PATH instead of hard-coding relative paths in invocations

This commit is contained in:
Werner Almesberger
2011-03-06 16:47:21 -03:00
parent b9244bdefd
commit cb3e80f502
2 changed files with 10 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/sh
PATH=..:$PATH
usage()
{
echo "usage: $0 [-f font] [-m] [-o fft_file] [-p png_file] prefix \
@@ -41,8 +43,8 @@ tmp=${out:-_tmp}
prefix=$1
f=$2
../fft -s 100 -d -w hamming 100 <./$prefix-$f >$tmp
set `./norm $tmp`
fft -s 100 -d -w hamming 100 <$prefix-$f >$tmp
set `norm $tmp`
xm=$1.0 # sample number of y peak
ym=$2 # magnitude of y peak