From a34f75b28748f9579c3df2baceed5c20164fd901 Mon Sep 17 00:00:00 2001 From: Kier Davis Date: Mon, 13 Mar 2017 10:58:22 +0000 Subject: [PATCH] Also log accel_z --- src/imu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imu.c b/src/imu.c index 6091d40..84cacf8 100644 --- a/src/imu.c +++ b/src/imu.c @@ -454,7 +454,7 @@ void imu_read(measured_state_t *destination){ } prev_time = curr_time; - printf("gx=%f gy=%f ax=%f ay=%f\n", gyro_x, gyro_y, accel_x, accel_y); + printf("gx=%f gy=%f ax=%f ay=%f az=%f\n", gyro_x, gyro_y, accel_x, accel_y, accel_z); MadgwickAHRSupdateIMU(gyro_x, gyro_y, gyro_z, accel_x, accel_y, accel_z, dt);