summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-09-12 02:26:32 -0700
committerKeith Packard <keithp@keithp.com>2012-09-12 02:26:32 -0700
commit42bbe15512533f2d958b8219a02fbd256593092a (patch)
tree70460e4372697a5dd4356b1f35b0d1354eba7113
parentb3c3c6eabd6837f0e72acee3906c8f71c6f0030e (diff)
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 <keithp@keithp.com>
-rw-r--r--altoslib/AltosEepromIterable.java1
1 files changed, 1 insertions, 0 deletions
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)