altos/test: Display MPU6000 values in ao_flight_test_mm output
[fw/altos] / src / test / run-baro
1 #!/bin/sh
2
3 for i in "$@"; do
4 ./ao_flight_test_baro "$i" > run-out.baro
5
6 #./ao_flight_test_accel "$i" > run-out.accel
7 #"run-out.accel" using 1:9 with lines lt 4 axes x1y1 title "accel height",\
8 #"run-out.accel" using 1:11 with lines lt 4 axes x1y2 title "accel speed",\
9 #"run-out.accel" using 1:13 with lines lt 4 axes x1y2 title "accel accel",\
10 #"run-out.accel" using 1:15 with lines lt 4 axes x1y1 title "accel drogue",\
11 #"run-out.accel" using 1:17 with lines lt 4 axes x1y1 title "accel main",\
12 #
13
14 gnuplot << EOF
15 set ylabel "altitude (m)"
16 set y2label "velocity (m/s), acceleration(m/s²)"
17 set xlabel "time (s)"
18 set xtics border out nomirror
19 set ytics border out nomirror
20 set y2tics border out nomirror
21 set title "$i"
22 plot "run-out.baro" using 1:3 with lines lw 2 lt 1 axes x1y1 title "raw height",\
23 "run-out.baro" using 1:5 with lines lw 2 lt 2 axes x1y2 title "raw accel",\
24 "run-out.baro" using 1:9 with lines lt 3 axes x1y1 title "baro height",\
25 "run-out.baro" using 1:11 with lines lt 4 axes x1y2 title "baro speed",\
26 "run-out.baro" using 1:13 with lines lt 5 axes x1y2 title "baro accel",\
27 "run-out.baro" using 1:17 with lines lt 6 axes x1y1 title "baro drogue",\
28 "run-out.baro" using 1:19 with lines lt 7 axes x1y1 title "baro main"
29 pause mouse close
30 EOF
31 done