summaryrefslogtreecommitdiff
path: root/ao-tools/ao-postflight
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-06 13:08:54 -0700
committerKeith Packard <keithp@keithp.com>2009-09-06 13:08:54 -0700
commit73f4a57239f770aff603b961169c0e2cfe2c276b (patch)
treea3d70042420d2d59d52105e9ea5fe628ce32f73c /ao-tools/ao-postflight
parente35e485ffe6b26034788ab295121bc2693b7eec1 (diff)
Use pressure speed for drogue and beyond states. Fix differentiation time.
Drogue state should always use pressure speeds. Differentiation code was using centi-seconds instead of seconds. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-postflight')
-rw-r--r--ao-tools/ao-postflight/ao-postflight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-tools/ao-postflight/ao-postflight.c b/ao-tools/ao-postflight/ao-postflight.c
index 6683c67c..0c632c34 100644
--- a/ao-tools/ao-postflight/ao-postflight.c
+++ b/ao-tools/ao-postflight/ao-postflight.c
@@ -128,7 +128,7 @@ analyse_flight(struct cc_flightraw *f, FILE *summary_file, FILE *detail_file)
}
if (cooked) {
- if (state_start < apogee) {
+ if (state < ao_flight_drogue) {
speed_i = cc_perioddata_max(&cooked->accel_speed, state_start, state_stop);
if (speed_i >= 0)
speed = cooked->accel_speed.data[speed_i];