Add comment for magnetometer usage

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-09-08 00:43:15 +02:00
parent 0717ad9cd5
commit 866cace9a6
No known key found for this signature in database
GPG key ID: D850A5F772E880F9

View file

@ -810,6 +810,8 @@ int device3_read(device3_type* device, int timeout) {
//printf("M: %.2f %.2f %.2f\n", magnetometer.axis.x, magnetometer.axis.y, magnetometer.axis.z);
if (device->ahrs) {
/* The magnetometer seems to make results of sensor fusion generally worse. So it is not used currently. */
//FusionAhrsUpdate((FusionAhrs*) device->ahrs, gyroscope, accelerometer, magnetometer, deltaTime);
FusionAhrsUpdateNoMagnetometer((FusionAhrs*) device->ahrs, gyroscope, accelerometer, deltaTime);
const device3_quat_type orientation = device3_get_orientation(device->ahrs);