niru-5 / imusensor

Python library for communication between raspberry pi and MPU9250 imu
MIT License
101 stars 32 forks source link

Error in Magnetometer precise Calibration #13

Closed roboteer-HJ closed 3 years ago

roboteer-HJ commented 3 years ago

I am getting the following error and invalid value of yaw-

mag precise is claibrating /home/pi/.pyenv/versions/instalimb/lib/python3.8/site-packages/imusensor/MPU9250/MPU9250.py:400: RuntimeWarning: invalid value encountered in double_scalars r = (a b c) ** (1. / 3.) Done Calibrating MAG roll: -176.23316858291108 ; pitch : -0.9488874320033538 ; yaw : nan roll: -176.11579914390077 ; pitch : -0.9432215036079428 ; yaw : nan roll: -176.1911116954199 ; pitch : -0.9515163948412073 ; yaw : nan

P.S. without using calibration I am getting valid values of yaw.

roboteer-HJ commented 3 years ago

Sorry I forgot to rotate it in 8 direction.