AHRS version 0.4
When i attempt to use the EKF with magnetometer vector i get the following error;
Trace:
q = ekf.update(q, np.deg2rad(gyr), acc, MAG_CAL/1000, dt)
File "C:\Users\natha\AppData\Roaming\Python\Python313\site-packages\ahrs\filters\ekf.py", line 1377, in update
v = z - y # Innovation (Measurement Residual)
^
ValueError: operands could not be broadcast together with shapes (6,) (3,)
Works fine with just accelerometer and gyroscope.
AHRS version 0.4
When i attempt to use the EKF with magnetometer vector i get the following error;
Trace:
q = ekf.update(q, np.deg2rad(gyr), acc, MAG_CAL/1000, dt)
File "C:\Users\natha\AppData\Roaming\Python\Python313\site-packages\ahrs\filters\ekf.py", line 1377, in update
v = z - y # Innovation (Measurement Residual)
^ValueError: operands could not be broadcast together with shapes (6,) (3,)
Works fine with just accelerometer and gyroscope.