diff options
author | Keith Packard <keithp@keithp.com> | 2014-04-29 19:04:30 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-04-29 19:05:49 -0700 |
commit | 5fb246fb50e262aa81ef7eb430be9782cfcf8848 (patch) | |
tree | 6627d82df40326b0c371c35bf17c34f1dd0acde9 /altosui/AltosFlightStats.java | |
parent | f8429152e438eb72618edaf5983ae1cd5d3d4dab (diff) |
altosui: Add extra ignitors to graphable objects
List all of the available extra ignitors as possible things to graph.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightStats.java')
-rw-r--r-- | altosui/AltosFlightStats.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/altosui/AltosFlightStats.java b/altosui/AltosFlightStats.java index 0be49c2f..d02a518d 100644 --- a/altosui/AltosFlightStats.java +++ b/altosui/AltosFlightStats.java @@ -42,6 +42,7 @@ public class AltosFlightStats { boolean has_imu; boolean has_mag; boolean has_orient; + int num_ignitor; double landed_time(AltosStateIterable states) { AltosState state = null; @@ -171,6 +172,8 @@ public class AltosFlightStats { has_mag = true; if (state.orient() != AltosLib.MISSING) has_orient = true; + if (state.ignitor_voltage != null && state.ignitor_voltage.length > num_ignitor) + num_ignitor = state.ignitor_voltage.length; } for (int s = Altos.ao_flight_startup; s <= Altos.ao_flight_landed; s++) { if (state_count[s] > 0) { |