altos: Switch telemetrum over to kalman filter
[fw/altos] / src / test / run-one
1 #!/bin/sh
2
3 ./ao_flight_test "$1" > run-out.full
4 ./ao_flight_test_baro "$1" > run-out.baro
5 ./ao_flight_test_accel "$1" > run-out.accel
6
7 gnuplot -persist << EOF
8 set ylabel "altitude (m)"
9 set y2label "velocity (m/s), acceleration(m/s²)"
10 set xlabel "time (s)"
11 set xtics border out nomirror
12 set ytics border out nomirror
13 set y2tics border out nomirror
14 set title "$1"
15 plot "run-out.full" using 1:3 with lines lw 2 lt 1 axes x1y1 title "raw height",\
16 "run-out.full" using 1:5 with lines lw 2 lt 1 axes x1y2 title "raw accel",\
17 "run-out.full" using 1:9 with lines lt 2 axes x1y1 title "full height",\
18 "run-out.full" using 1:11 with lines lt 2 axes x1y2 title "full speed",\
19 "run-out.full" using 1:13 with lines lt 2 axes x1y2 title "full accel",\
20 "run-out.full" using 1:15 with lines lt 2 axes x1y1 title "full drogue",\
21 "run-out.full" using 1:17 with lines lt 2 axes x1y1 title "full main", \
22 "run-out.baro" using 1:9 with lines lt 3 axes x1y1 title "baro height",\
23 "run-out.baro" using 1:11 with lines lt 3 axes x1y2 title "baro speed",\
24 "run-out.baro" using 1:13 with lines lt 3 axes x1y2 title "baro accel",\
25 "run-out.baro" using 1:15 with lines lt 3 axes x1y1 title "baro drogue",\
26 "run-out.baro" using 1:17 with lines lt 3 axes x1y1 title "baro main",\
27 "run-out.accel" using 1:9 with lines lt 4 axes x1y1 title "accel height",\
28 "run-out.accel" using 1:11 with lines lt 4 axes x1y2 title "accel speed",\
29 "run-out.accel" using 1:13 with lines lt 4 axes x1y2 title "accel accel",\
30 "run-out.accel" using 1:15 with lines lt 4 axes x1y1 title "accel drogue",\
31 "run-out.accel" using 1:17 with lines lt 4 axes x1y1 title "accel main"
32 EOF