thecountoftuscany / PyTeapot-Quaternion-Euler-cube-rotation

Visualization of IMU orientation from quaternion or Euler angles with a rotating cube
GNU General Public License v3.0
145 stars 42 forks source link

MPU9250 sensor fusion #3

Closed KeepThisTicket closed 4 years ago

KeepThisTicket commented 4 years ago

Where can I get find the code that generates the quaternion for the MPU9250 raw data ? Your sensor performance looks really good.

thecountoftuscany commented 4 years ago

I used the quaternionFilters.ino file from this repo, which uses the Madgwick or the Mahony filters for sensor fusion. I don't exactly remember exactly which one among those two the gif in my readme corresponds to, but both of them had an almost identical performance.

KeepThisTicket commented 4 years ago

Awesome - thanks for the quick reply!