From 964a14568b73296194f84c728cc7e01d6f0e2f64 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 14 Oct 2017 12:05:07 -0700 Subject: [PATCH] altoslib: Report un-adjusted ground accel in idle IMU monitor The ground accel is the basis of the accel adjustment, so it needs to be delivered in un-adjusted form. Signed-off-by: Keith Packard --- altoslib/AltosIMU.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/altoslib/AltosIMU.java b/altoslib/AltosIMU.java index dee28a92..ba6f1a82 100644 --- a/altoslib/AltosIMU.java +++ b/altoslib/AltosIMU.java @@ -83,9 +83,9 @@ public class AltosIMU implements Cloneable { listener.set_gyro(cal_data.gyro_roll(imu.gyro_y), cal_data.gyro_pitch(imu.gyro_x), cal_data.gyro_yaw(imu.gyro_z)); - listener.set_accel_ground(cal_data.accel_along(imu.accel_y), - cal_data.accel_across(imu.accel_x), - cal_data.accel_through(imu.accel_z)); + listener.set_accel_ground(imu.accel_y, + imu.accel_x, + imu.accel_z); } } catch (TimeoutException te) { } -- 2.30.2