and maybe Peter @pythoncoder
I'm trying to get the fusion library to work (micropython-IMU) using different sensors.
I use the FXAS21002 and FXOS8700 chips to get gyro, accelerometer and magnetometer readings.
What I really need is compass information so I tried to use the fusion module to get heading information.
So far I seem to have correct gyro (degrees/s), acceleration and magnetometer information nicely reported at an ODR=100Hz and gyro with 250DPS, accelerometer in 2G mode... in three tuples and feed that into the fusion module.
Basically the code calls
Code: Select all
fuse.update(imu9DOF.acc(), imu9DOF.gyro(), imu9DOF.mag())
The output stabilises in 5 iterations around like 162.437, -2.018, -15,300 for heading , pitch and roll. If I rotate it over the axis, going up/down and left/right follow the movement, but the heading is not much changing when rotating the sensor and definitely not 0-359 what I was expecting
So I wonder if somebody has a dataset of acc/gyro/mag sensor measured values that can be used to feed into the fusion code to see what is supposed to happen and a way to verify if the numbers are in the same order of magnitude..