diff options
author | Keith Packard <keithp@keithp.com> | 2013-09-03 17:42:42 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-09-03 17:42:42 -0600 |
commit | b984ff81d6b8979574e0248ffe8876634b8e1942 (patch) | |
tree | 3b34bf5231eda698523290d192ffc34534b7eee4 | |
parent | 96a651cc1b81b30f4cbde454e34cf80ed8825945 (diff) |
altoslib: Set measured acceleration for measured acceleration
Was setting computed acceleration even for measured data
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altoslib/AltosState.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosState.java b/altoslib/AltosState.java index e32a1fe5..1c400bab 100644 --- 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_computed((ground - accel) / counts_per_mss, time); + acceleration.set_measured((ground - accel) / counts_per_mss, time); } public void set_accel_g(double accel_plus_g, double accel_minus_g) { |