ahrs icon indicating copy to clipboard operation
ahrs copied to clipboard

Opposite results from Madgwick and AQUA

Open Yushchuk6 opened this issue 3 years ago • 1 comments

When used on the same reading Madgwick and AQUA produce opposite results. This causes spinning in opposite directions.

I can guess that it is just how filters implementation works, but it would be nice if all filters produced the same result. It should be easy to fix just by flipping the XYZ quaternion result for one on the filters.

Also, didn't test but it is possible that there are more filters that produce one of two results.

Example of rotation: AQUA [0.92532097 0.3791205 0.00524886 0.00460348] Madgwick [ 0.92497363 -0.3799769 -0.00416885 -0.00489403]

Image example: bug

Yushchuk6 avatar Feb 28 '21 11:02 Yushchuk6

Thanks for pointing this out. I think I'll make some big benchmark for all estimators and try to find more discrepances like this. Once I find the reason for such an inverted rotation I'll get back to you. Thanks again!

Mayitzin avatar Mar 05 '21 21:03 Mayitzin