ahrs icon indicating copy to clipboard operation
ahrs copied to clipboard

Handling NaN line causing issue in updateMARG method in madgwick.py

Open Aurangazeeb opened this issue 3 years ago • 1 comments

When using updateMARG, it shows the following error error -

TypeError: ufunc 'true_divide' output (typecode 'd') could not be coerced to provided output parameter (typecode 'q') according to the casting rule ''same_kind''

a = a / a_norm instead of a /= a_norm produces no error

the same applies for m /= m_norm as well.

Please see to this issue.

Aurangazeeb avatar Jan 25 '21 11:01 Aurangazeeb

Hi, I cannot reproduce the error. Which version of the package are you using?

Mayitzin avatar Feb 02 '21 22:02 Mayitzin