projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Report un-adjusted ground accel in idle IMU monitor
[fw/altos]
/
altoslib
/
AltosCalData.java
diff --git
a/altoslib/AltosCalData.java
b/altoslib/AltosCalData.java
index 49b90ce7d5ff9a58f13f7949e2a2f8dd94d0cccb..7415d5ad6584e54c4594fe44c21ef5588529c537 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
@@
-72,6
+72,13
@@
public class AltosCalData {
}
}
}
}
+ public int log_format = AltosLib.MISSING;
+
+ public void set_log_format(int log_format) {
+ if (log_format != AltosLib.MISSING)
+ this.log_format = log_format;
+ }
+
public int config_major = AltosLib.MISSING;
public int config_minor = AltosLib.MISSING;
public int flight_log_max = AltosLib.MISSING;
public int config_major = AltosLib.MISSING;
public int config_minor = AltosLib.MISSING;
public int flight_log_max = AltosLib.MISSING;
@@
-342,8
+349,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;
}