projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/altosui: Add ability to disable telemetry/rdf completely
[fw/altos]
/
altosui
/
AltosFlightStats.java
diff --git
a/altosui/AltosFlightStats.java
b/altosui/AltosFlightStats.java
index e644b0bab73db07b6fd45bad7fc406f6ee1f6750..19471e9fa650847b8af2d5406e3036f8db19f4be 100644
(file)
--- a/
altosui/AltosFlightStats.java
+++ b/
altosui/AltosFlightStats.java
@@
-67,7
+67,10
@@
public class AltosFlightStats {
if (state_end[state.state] < state.time)
state_end[state.state] = state.time;
max_height = state.max_height;
if (state_end[state.state] < state.time)
state_end[state.state] = state.time;
max_height = state.max_height;
- max_speed = state.max_speed;
+ if (state.max_speed != 0)
+ max_speed = state.max_speed;
+ else
+ max_speed = state.max_baro_speed;
max_acceleration = state.max_acceleration;
}
} catch (ParseException pp) {
max_acceleration = state.max_acceleration;
}
} catch (ParseException pp) {