summaryrefslogtreecommitdiff
path: root/altosui/AltosState.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-10 13:35:26 -0700
committerKeith Packard <keithp@keithp.com>2011-08-10 13:35:26 -0700
commit6ac604d11de44cd824f09e4b467264a2b74be7bd (patch)
tree3b56f4826826dbb1de1682b99a8c5bb9eed33eb0 /altosui/AltosState.java
parent94d9a2c36fabdf24d6a0b985851e95e4eb181fd9 (diff)
Altosui: Add flight statistics tab to graph window
Provide basic flight stats alongside the flight graph. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosState.java')
-rw-r--r--altosui/AltosState.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/altosui/AltosState.java b/altosui/AltosState.java
index d374aed8..1ac816d5 100644
--- a/altosui/AltosState.java
+++ b/altosui/AltosState.java
@@ -28,6 +28,7 @@ public class AltosState {
long report_time;
+ double time;
double time_change;
int tick;
@@ -130,6 +131,8 @@ public class AltosState {
time_change = 0;
}
+ time = tick / 100.0;
+
if (state == Altos.ao_flight_pad || state == Altos.ao_flight_idle) {
/* Track consecutive 'good' gps reports, waiting for 10 of them */