projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5727260
)
altoslib: Report GPS height when baro height is not available
author
Keith Packard
<keithp@keithp.com>
Thu, 12 Jun 2014 06:04:11 +0000
(23:04 -0700)
committer
Keith Packard
<keithp@keithp.com>
Thu, 12 Jun 2014 06:04:11 +0000
(23:04 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosState.java
patch
|
blob
|
history
diff --git
a/altoslib/AltosState.java
b/altoslib/AltosState.java
index 6926994c4292b7c6d19ef9e21ce98e32346f8767..256826a5d0da65185db38bb9826996f45546f38b 100644
(file)
--- a/
altoslib/AltosState.java
+++ b/
altoslib/AltosState.java
@@
-481,7
+481,7
@@
public class AltosState implements Cloneable {
double g = ground_altitude();
if (a != AltosLib.MISSING && g != AltosLib.MISSING)
return a - g;
- return
AltosLib.MISSING
;
+ return
gps_height()
;
}
public double max_height() {