fix missing newline at end of src/test/Makefile
[fw/altos] / src / test / run-mm
1 #!/bin/sh
2
3 DIR=~/misc/rockets/flights
4
5 for i in "$@"; do
6     case "$i" in
7         */*)
8         file="$i"
9         ;;
10         *)
11         file="$DIR/$i"
12         ;;
13     esac
14     base=`basename "$i" .eeprom`
15
16     ./ao_flight_test_mm "$file" > $base.plot
17
18     sh ./plotmm $base.plot `basename "$file"`
19 done
20
21 #./ao_flight_test_accel "$file" > run-out.accel
22 #"run-out.accel" using 1:9 with lines lt 4 axes x1y1 title "accel height",\
23 #"run-out.accel" using 1:11 with lines lt 4 axes x1y2 title "accel speed",\
24 #"run-out.accel" using 1:13 with lines lt 4 axes x1y2 title "accel accel",\
25 #"run-out.accel" using 1:15 with lines lt 4 axes x1y1 title "accel drogue",\
26 #"run-out.accel" using 1:17 with lines lt 4 axes x1y1 title "accel main",\
27 #
28
29 #gnuplot << EOF
30 #set ylabel "altitude (m)"
31 #set y2label "velocity (m/s), acceleration(m/s²)"
32 #set xlabel "time (s)"
33 #set xtics border out nomirror
34 #set ytics border out nomirror
35 #set y2tics border out nomirror
36 #set title "$i"
37 #plot "run-out.mm" using 1:3 with lines lw 2 lt 1 axes x1y1 title "raw height",\
38 #"run-out.mm" using 1:5 with lines lw 2 lt 1 axes x1y2 title "raw accel",\
39 #"run-out.mm" using 1:21 with lines lt 2 axes x1y1 title "mm height",\
40 #"run-out.mm" using 1:23 with lines lt 2 axes x1y2 title "mm speed",\
41 #"run-out.mm" using 1:25 with lines lt 2 axes x1y2 title "mm accel",\
42 #"run-out.mm" using 1:29 with lines lt 2 axes x1y1 title "mm drogue",\
43 #"run-out.mm" using 1:31 with lines lt 2 axes x1y1 title "mm main"
44 #pause mouse close
45 #EOF
46 #done