projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ae38a6b
)
altoslib: Reset consecutive GPS count when GPS bad
author
Keith Packard
<keithp@keithp.com>
Wed, 12 Feb 2020 19:37:05 +0000
(11:37 -0800)
committer
Keith Packard
<keithp@keithp.com>
Wed, 12 Feb 2020 19:37:05 +0000
(11:37 -0800)
This makes sure we get back to 'GPS not ready' when GPS goes unlocked.
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 93104fb0878c946468aaec1f898b3e844de4c6af..7a64f8a188182704c5aa6fbd01e17fb627eef5e5 100644
(file)
--- a/
altoslib/AltosState.java
+++ b/
altoslib/AltosState.java
@@
-842,6
+842,8
@@
public class AltosState extends AltosDataListener {
gps.climb_rate * gps.climb_rate), time);
if (gps.course != AltosLib.MISSING)
gps_course.set(gps.course, time);
+ } else if (state() == AltosLib.ao_flight_pad || state() == AltosLib.ao_flight_stateless) {
+ set_npad(0);
}
if (gps.lat != 0 && gps.lon != 0 &&
pad_lat != AltosLib.MISSING &&