Browse Source

AP_NavEKF: enable plotting in plot2.dat too

master
Andrew Tridgell 11 years ago
parent
commit
77c4968342
  1. 15
      libraries/AP_NavEKF/examples/AP_NavEKF/plotit.sh

15
libraries/AP_NavEKF/examples/AP_NavEKF/plotit.sh

@ -1,12 +1,21 @@ @@ -1,12 +1,21 @@
#!/bin/sh
#!/bin/bash
cmd="plot "
echo $#
while [ $# -gt 1 ]; do
cmd="$cmd 'plot.dat' using 1:'$1',"
if [[ "$1" == *.* ]]; then
cmd="$cmd 'plot.dat' using 1:'$1',"
else
cmd="$cmd 'plot2.dat' using 1:'$1',"
fi
shift
done
cmd="$cmd 'plot.dat' using 1:'$1'"
if [[ "$1" == *.* ]]; then
cmd="$cmd 'plot.dat' using 1:'$1'"
else
cmd="$cmd 'plot2.dat' using 1:'$1'"
fi
echo $cmd
cat <<EOF > _plot.gnu
set style data lines
set xlabel "time(s)"

Loading…
Cancel
Save