diff options
| author | Keith Packard <keithp@keithp.com> | 2018-05-07 08:56:32 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-05-07 09:21:56 -0700 |
| commit | 7b11a34bb031035883bac97952e5ca6db0684e33 (patch) | |
| tree | 43e4b445f5f72b68d3108f494c23635f150b938f /src/test/plottest | |
| parent | cc83d57454ed07e4828b4413e5af6ae2ecfe2e5a (diff) | |
altos/test: Replace state name with 10* state value in test log. Fix raw speed
Using a state value means we can plot state changes along with the
rest of the graph. Raw speed (simple integrated acceleration) was
busted; mostly needing to skip the first accel sample.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/plottest')
| -rwxr-xr-x | src/test/plottest | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/plottest b/src/test/plottest index 95337f10..e427604a 100755 --- a/src/test/plottest +++ b/src/test/plottest @@ -1,4 +1,5 @@ gnuplot -persist << EOF +set title "$1" set ylabel "altitude (m)" set y2label "velocity (m/s), acceleration(m/s²)" set xlabel "time (s)" @@ -13,5 +14,6 @@ plot "$1" using 1:3 with lines axes x1y1 title "raw height",\ "$1" using 1:15 with lines axes x1y2 title "accel",\ "$1" using 1:19 with lines axes x1y1 title "drogue",\ "$1" using 1:21 with lines axes x1y1 title "main",\ -"$1" using 1:23 with lines axes x1y1 title "error" +"$1" using 1:23 with lines axes x1y1 title "error",\ +"$1" using 1:9 with lines axes x1y2 title "state" EOF |
