altoslib: Set measured acceleration for measured acceleration
authorKeith Packard <keithp@keithp.com>
Tue, 3 Sep 2013 23:42:42 +0000 (17:42 -0600)
committerKeith 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

index e32a1fe5111f4650774013ecb2c707376be226d5..1c400bab2a57bece34d8627f1300bd62dbc4bd1d 100644 (file)
@@ -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) {