Add comment for magnetometer usage
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
0717ad9cd5
commit
866cace9a6
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue