summaryrefslogtreecommitdiff
path: root/src/test/plotmicro
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-01-16 15:15:49 -0800
committerKeith Packard <keithp@keithp.com>2013-01-16 15:21:24 -0800
commit540309240a8515116120dbd4403902282ed8c27b (patch)
tree450f6c9b95fcdaff2abce7dcdde17ee88ad0bcb9 /src/test/plotmicro
parent249ee968305ae6e8fcf0a10e5cf9cc5826bd81dd (diff)
altos: Add Kalman filter to MicroPeak
This filters altitudes more accurately and also allows tracking of acceleration, which is used to discard height data generated by ejection charge noise Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/plotmicro')
-rwxr-xr-xsrc/test/plotmicro14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/plotmicro b/src/test/plotmicro
new file mode 100755
index 00000000..cdfcc581
--- /dev/null
+++ b/src/test/plotmicro
@@ -0,0 +1,14 @@
+#!/bin/sh
+for i in "$@"; do
+gnuplot -p << EOF &
+set title "$i"
+set ylabel "height (m)"
+set xlabel "time (s)"
+set xtics border out nomirror
+set ytics border out nomirror
+set y2tics border out nomirror
+plot "$i" using 1:2 with lines lt 2 axes x1y1 title "raw height",\
+ "$i" using 1:3 with lines lt 4 axes x1y1 title "kalman height",\
+ "$i" using 1:4 with lines lt 1 axes x1y1 title "max height"
+EOF
+done