summaryrefslogtreecommitdiff
path: root/altoslib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-14 12:05:07 -0700
committerKeith Packard <keithp@keithp.com>2017-10-14 12:05:07 -0700
commit964a14568b73296194f84c728cc7e01d6f0e2f64 (patch)
treeadcef9038ab304c20132c1ff6240e2f34ad3df9d /altoslib
parent4431f70044f4e1120d606f0ded1845349295d68e (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r--altoslib/AltosIMU.java6
1 files 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) {
}