projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Avoid crashing when computing stats for empty flight logs
[fw/altos]
/
altoslib
/
AltosCalData.java
diff --git
a/altoslib/AltosCalData.java
b/altoslib/AltosCalData.java
index 49b90ce7d5ff9a58f13f7949e2a2f8dd94d0cccb..6258c1a8448175d8e532c918d62fa506655fdcd3 100644
(file)
--- a/
altoslib/AltosCalData.java
+++ b/
altoslib/AltosCalData.java
@@
-12,7
+12,7
@@
* General Public License for more details.
*/
* General Public License for more details.
*/
-package org.altusmetrum.altoslib_1
1
;
+package org.altusmetrum.altoslib_1
2
;
/*
* Calibration and other data needed to construct 'real' values from various data
/*
* Calibration and other data needed to construct 'real' values from various data
@@
-342,8
+342,8
@@
public class AltosCalData {
v = Math.ceil(v);
else
v = Math.floor(v);
v = Math.ceil(v);
else
v = Math.floor(v);
-
if (v != 0)
-
System.out.printf("Adjusting gyro axis by %g steps\n", v);
+
//
if (v != 0)
+
//
System.out.printf("Adjusting gyro axis by %g steps\n", v);
return v * 128.0;
}
return v * 128.0;
}