Show acceleration only during boost phase.
authorKeith Packard <keithp@keithp.com>
Mon, 7 Sep 2009 04:02:48 +0000 (21:02 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 7 Sep 2009 04:02:48 +0000 (21:02 -0700)
We're interested in motor performance; the rest of the flight is
boring, after all.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-postflight/ao-postflight.c

index ded2f3c2764dcb3a8b6406e80b076159d4a46611..3a6f04b6958b82fa3d3f5e72234d550bf5d8e1b7 100644 (file)
@@ -325,7 +325,7 @@ analyse_flight(struct cc_flightraw *f, FILE *summary_file, FILE *detail_file, FI
                plot_perioddata(speed, "meters/second", "Speed", -1e10, 1e10, PLOT_SPEED);
                plot_perioddata(speed, "meters/second", "Speed to Apogee", boost_start, apogee, PLOT_SPEED);
                plot_perioddata(&cooked->accel_accel, "meters/second²", "Acceleration", -1e10, 1e10, PLOT_ACCEL);
-               plot_perioddata(&cooked->accel_accel, "meters/second²", "Acceleration to Apogee", boost_start, apogee, PLOT_ACCEL);
+               plot_perioddata(&cooked->accel_accel, "meters/second²", "Acceleration during Boost", boost_start, boost_stop + (boost_stop - boost_start) / 2.0, PLOT_ACCEL);
                free(speed->data);
                free(speed);
                plend();