altos/test: Adjust CRC error rate after FEC fix
[fw/altos] / src / test / run-full
1 #!/bin/sh
2
3 for i in "$@"; do
4 ./ao_flight_test "$i" > run-out.full
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.full" using 1:3 with lines lw 2 lt 1 axes x1y1 title "raw height",\
23 "run-out.full" using 1:5 with lines lw 2 lt 2 axes x1y2 title "raw accel",\
24 "run-out.full" using 1:9 with lines lt 3 axes x1y1 title "full height",\
25 "run-out.full" using 1:11 with lines lt 4 axes x1y2 title "full speed",\
26 "run-out.full" using 1:13 with lines lt 5 axes x1y2 title "full accel",\
27 "run-out.full" using 1:17 with lines lt 6 axes x1y1 title "full drogue",\
28 "run-out.full" using 1:19 with lines lt 7 axes x1y1 title "full main"
29 pause mouse close
30 EOF
31 done