projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Deal with new Mega log format that has 32-bit gyro cal
[fw/altos]
/
altoslib
/
AltosTelemetryIterable.java
diff --git
a/altoslib/AltosTelemetryIterable.java
b/altoslib/AltosTelemetryIterable.java
index 9da3b0e6b91b824982abb464bb61663790ffe33e..ac42597d5935e7a7da957b95a7ef68883828d8ae 100644
(file)
--- a/
altoslib/AltosTelemetryIterable.java
+++ b/
altoslib/AltosTelemetryIterable.java
@@
-15,7
+15,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altoslib_
2
;
+package org.altusmetrum.altoslib_
5
;
import java.io.*;
import java.util.*;
import java.io.*;
import java.util.*;
@@
-68,7
+68,7
@@
public class AltosTelemetryIterable implements Iterable<AltosTelemetry> {
public void add (AltosTelemetry telem) {
int t = telem.tick;
if (!telems.isEmpty()) {
public void add (AltosTelemetry telem) {
int t = telem.tick;
if (!telems.isEmpty()) {
- while (t < tick -
32767
)
+ while (t < tick -
1000
)
t += 65536;
}
tick = t;
t += 65536;
}
tick = t;