From 42bbe15512533f2d958b8219a02fbd256593092a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 12 Sep 2012 02:26:32 -0700 Subject: [PATCH] altosui: Initialize flight velocity to zero when reading eeprom files Otherwise, the integration of velocity will start at MISSING and get stranger. Fortunately, we know the initial velocity of the rocket when sitting on the pad. Signed-off-by: Keith Packard --- altoslib/AltosEepromIterable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/altoslib/AltosEepromIterable.java b/altoslib/AltosEepromIterable.java index 1aa816e1..2ac10e85 100644 --- a/altoslib/AltosEepromIterable.java +++ b/altoslib/AltosEepromIterable.java @@ -200,6 +200,7 @@ public class AltosEepromIterable extends AltosRecordIterable { state.state = AltosLib.ao_flight_pad; state.accel_plus_g = 15758; state.accel_minus_g = 16294; + state.flight_vel = 0; /* Pull in static data from the flight and gps_date records */ if (flight_record != null) -- 2.30.2