projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Altosui: Add flight statistics tab to graph window
[fw/altos]
/
altosui
/
AltosState.java
diff --git
a/altosui/AltosState.java
b/altosui/AltosState.java
index d374aed8e5d410e32fb34c30c3f291f8ea8e81f9..1ac816d52f842f594e9b378b003ba8a59754e907 100644
(file)
--- 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 */