From: Keith Packard Date: Wed, 12 Sep 2012 09:26:32 +0000 (-0700) Subject: altosui: Initialize flight velocity to zero when reading eeprom files X-Git-Tag: 1.1~4^2~5 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=42bbe15512533f2d958b8219a02fbd256593092a;hp=b3c3c6eabd6837f0e72acee3906c8f71c6f0030e 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 --- 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)