kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.04k stars 470 forks source link

weird behavior of magnetometer #188

Open MahmoudElgendy95 opened 7 years ago

MahmoudElgendy95 commented 7 years ago

hi kris, i get yaw reading just 180 degree range from north to south counterclockwise and from north clockwise doesn't give any response ! also when i flip the sensor the yaw stop giving any response and advise ?

kriswiner commented 7 years ago

Did you calibrate your sensors? How?

On Sat, Sep 23, 2017 at 1:20 PM, mahmoudelgendy1995 < notifications@github.com> wrote:

hi kris, i get yaw reading just 180 degree range from north to south counterclockwise and from north clockwise doesn't give any response ! also when i flip the sensor the yaw stop giving any response and advise ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/188, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qgLzVcpPV3TZlEWG0o6jMdM9sW0dks5slWgqgaJpZM4PhrDK .

MahmoudElgendy95 commented 7 years ago

i calibrate it as you mention in this article https://github.com/kriswiner/MPU6050/wiki/Simple-and-Effective-Magnetometer-Calibration

MahmoudElgendy95 commented 7 years ago

now the yaw reading is fine but it is affect by the other reading i.e when rotate the sensor in other direction the yaw changes why is that ?

kriswiner commented 7 years ago

You are not feeding the Madgwick fusion algorithm data in the proper order, or your sensors are not calibrated properly, or you have crappy sensors.

On Mon, Sep 25, 2017 at 9:15 AM, mahmoudelgendy1995 < notifications@github.com> wrote:

now the yaw reading is fine but it is affect by the other reading i.e when rotate the sensor in other direction the yaw changes why is that ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/188#issuecomment-331933015, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qpIpzpbo8ayUKOB7fivv3RND4EKZks5sl9GigaJpZM4PhrDK .