arduino-libraries / MadgwickAHRS

Arduino implementation of the MadgwickAHRS algorithm
465 stars 196 forks source link

Yaw drift LSM6D3S #33

Open vlsireddy opened 2 years ago

vlsireddy commented 2 years ago

Hi,

  1. I see Yaw drift with the example code. using LSM6D3S with Arduino cc.
  2. I looked at various forums and see that 9DoF using Magnetometer is used to compensate gyro.
  3. without magnetometer, the drift could be compensated by few methods. Is this already part of this library [i could not find such code]
  4. and if not, is there any reason why it is not yet taken up?

Thanks

InputBlackBoxOutput commented 2 years ago

Hi @vlsireddy, I am using an MPU6050 with an Arduino Uno. I also observe a drift in the yaw values while the roll and pitch values are pretty stable. Have you found a solution that will compensate for the drift without using a magnetometer?

vlsireddy commented 2 years ago

Hi,

The experiment required accurate Yaw. So I used a BNO055 9DoF with an Arm chip integrated sensor which does all the Algo and gives out pure values. didn't pursue Yaw drift compensation without magnetometer.

Thanks

On Sun, Mar 13, 2022 at 12:05 AM Rutuparn Pawar @.***> wrote:

Hi @vlsireddy https://github.com/vlsireddy, I am using an MPU6050 with an Arduino Uno. I also observe a drift in the yaw values while the roll and pitch values are pretty stable. Have you found a solution that will compensate for the drift without using a magnetometer?

— Reply to this email directly, view it on GitHub https://github.com/arduino-libraries/MadgwickAHRS/issues/33#issuecomment-1066033798, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4WSBTBHVRCP4UWCJNSYFTU7WATJANCNFSM5NQREOTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

InputBlackBoxOutput commented 2 years ago

@vlsireddy No worries. I was going through the MPU6050 datasheet and found that it has a built-in motion processor that does sensor data fusion. I'll try it out when I get the time.

Thanks!