I am coding for MPU 9250 - 9DoF using Madgwick filter.
This is source code for Madgwick filter that I am using.
However, it had the error as shown on the video below. The pitch, raw, yaw always increase although I have not rotated the IMU sensor.
Link video shown the error: - YouTube
I also tested as the tutorial as the link below (I have not changed any thing) but it had the same issue as the video result.
Link tutorial: https://www.lucidar.me/en/inertial-measurement-unit/mpu-9250-and-arduino-9-axis-imu/
Link video result: - YouTube
Could you help me to find and fix this error?
Thank you so much for your help!