projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Make sure AltosFlightSeries is filled in before use
[fw/altos]
/
altoslib
/
AltosGPS.java
diff --git
a/altoslib/AltosGPS.java
b/altoslib/AltosGPS.java
index 0b30ed456593f75587ca57b2ff6a7954810f82db..a730957b2566bc5c0b872820d69fa682b38994cc 100644
(file)
--- a/
altoslib/AltosGPS.java
+++ b/
altoslib/AltosGPS.java
@@
-383,17
+383,13
@@
public class AltosGPS implements Cloneable {
}
}
}
}
- static public void
update_state(AltosState state, AltosLink link, AltosConfigData config
_data) throws InterruptedException {
+ static public void
provide_data(AltosDataListener listener, AltosLink link, AltosCalData cal
_data) throws InterruptedException {
try {
try {
- AltosGPS gps = new AltosGPS(link, config_data);
-
- if (gps != null) {
- state.set_gps(gps, state.gps_sequence++);
- return;
- }
+ AltosGPS gps = new AltosGPS(link, link.config_data());
+ if (gps != null)
+ listener.set_gps(gps);
} catch (TimeoutException te) {
}
} catch (TimeoutException te) {
}
- state.set_gps(null, 0);
}
public AltosGPS (AltosLink link, AltosConfigData config_data) throws TimeoutException, InterruptedException {
}
public AltosGPS (AltosLink link, AltosConfigData config_data) throws TimeoutException, InterruptedException {