From cced80edf9639f38d931222905634fc87a98e4cd Mon Sep 17 00:00:00 2001 From: mcsauder <mcsauder@gmail.com> Date: Sun, 27 Jan 2019 10:24:19 -0700 Subject: [PATCH] Correct the mpu6000 temperature correction scalar value to match the datasheet. --- src/drivers/imu/mpu6000/MPU6000.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/imu/mpu6000/MPU6000.cpp b/src/drivers/imu/mpu6000/MPU6000.cpp index 1cfd72b3c5..96c2545a8b 100644 --- a/src/drivers/imu/mpu6000/MPU6000.cpp +++ b/src/drivers/imu/mpu6000/MPU6000.cpp @@ -943,7 +943,7 @@ MPU6000::measure() temperature = (report.temp / 326.8f + 25.0f); } else { // If it is an MPU6000 - temperature = (report.temp / 361.0f + 35.0f); + temperature = (report.temp / 340.0f + 35.0f); } _px4_accel.set_temperature(temperature); -- GitLab