leech001 / MPU6050

STM32 HAL library for GY-521 (MPU6050) with Kalman filter
GNU General Public License v3.0
326 stars 81 forks source link

MPU6050.KalmanAngleX NaN #11

Open sjonkeesse opened 10 months ago

sjonkeesse commented 10 months ago

I've used the example code from this repository. When I log the MPU6050.KalmanAngleX value and move the IMU quickly, it changes to nan(0x800000...) and does not recover afterwards. This only happens with KalmanAngleX, not KalmanAngleY. What part of the calculation could cause this?

sjonkeesse commented 10 months ago

Created a pull-request https://github.com/leech001/MPU6050/pull/12