mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:17:20 +08:00
Correct the mpu6000 temperature correction scalar value to match the datasheet.
This commit is contained in:
@@ -943,7 +943,7 @@ MPU6000::measure()
|
|||||||
temperature = (report.temp / 326.8f + 25.0f);
|
temperature = (report.temp / 326.8f + 25.0f);
|
||||||
|
|
||||||
} else { // If it is an MPU6000
|
} 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);
|
_px4_accel.set_temperature(temperature);
|
||||||
|
|||||||
Reference in New Issue
Block a user