Mayitzin / ahrs

Attitude and Heading Reference Systems in Python

Home Page:https://ahrs.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

symbol correction

gooyle opened this issue · comments

thx for your package!!!it helps a lot,i think here are some mistakes, i use xsens data to test.
in file:

ahrs/ahrs/filters/mahony.py

#Rotate magnetic field to inertial frame
v_m = R.T@np.array([-np.linalg.norm([h[0], h[1]]) , 0.0, h[2]]) ##no minus
v_m = R.T@np.array([np.linalg.norm([h[0], h[1]]) , 0.0, h[2]])
and here is the results,shown in rollpitch and yaw

  • image
    and here is the results about m and v_m:
    image

This was adressed already in the commit 34f959f, and there was a major change with it too.

The creation of the v_m was, apparently, not correct. Please, test the new version, if possible, and let me know if you see any improvements at all.