projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Parse remaining mega AO_LOG_FLIGNT and AO_LOG_GPS_TIME fields
[fw/altos]
/
altosui
/
AltosFlightStats.java
diff --git
a/altosui/AltosFlightStats.java
b/altosui/AltosFlightStats.java
index 0be49c2fb82167890ab9da39f363fc2f8c2f0fca..d02a518d593f44fa72c8dce52ccd50293b3eff05 100644
(file)
--- a/
altosui/AltosFlightStats.java
+++ b/
altosui/AltosFlightStats.java
@@
-42,6
+42,7
@@
public class AltosFlightStats {
boolean has_imu;
boolean has_mag;
boolean has_orient;
boolean has_imu;
boolean has_mag;
boolean has_orient;
+ int num_ignitor;
double landed_time(AltosStateIterable states) {
AltosState state = null;
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;
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) {
}
for (int s = Altos.ao_flight_startup; s <= Altos.ao_flight_landed; s++) {
if (state_count[s] > 0) {