projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96a651c
)
altoslib: Set measured acceleration for measured acceleration
author
Keith Packard
<keithp@keithp.com>
Tue, 3 Sep 2013 23:42:42 +0000
(17:42 -0600)
committer
Keith Packard
<keithp@keithp.com>
Tue, 3 Sep 2013 23:42:42 +0000
(17:42 -0600)
Was setting computed acceleration even for measured data
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 e32a1fe5111f4650774013ecb2c707376be226d5..1c400bab2a57bece34d8627f1300bd62dbc4bd1d 100644
(file)
--- a/
altoslib/AltosState.java
+++ b/
altoslib/AltosState.java
@@
-884,7
+884,7
@@
public class AltosState implements Cloneable {
double counts_per_g = (accel_minus_g - accel_plus_g) / 2.0;
double counts_per_mss = counts_per_g / 9.80665;
- acceleration.set_
comput
ed((ground - accel) / counts_per_mss, time);
+ acceleration.set_
measur
ed((ground - accel) / counts_per_mss, time);
}
public void set_accel_g(double accel_plus_g, double accel_minus_g) {