Skip to content

EKF Bug, crashes when passing magnetometer data. #135

@AegisEngineering

Description

@AegisEngineering

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions