An error reported while running : LinAlgError("Singular matrix")
initializing... acc var: [0. 0. 0.], norm: 0.0 ang var: [2.22264042e-07 3.78493540e-01 2.42670246e+01], norm: 24.269976085242057 mag var: [74.9536 0. 0. ], norm: 74.9536
processing...
/Users/biumr/Documents/python/IMU-Position-Tracking/mathlib.py:16: RuntimeWarning: invalid value encountered in divide
return x / np.linalg.norm(x)
/Users/biumr/Documents/python/IMU-Position-Tracking/main.py:149: RuntimeWarning: invalid value encountered in scalar divide
Ra = [(acc_noise / np.linalg.norm(at))**2 + (1 - g0 / np.linalg.norm(at))**2] * 3
Traceback (most recent call last):
File "/Users/biumr/Documents/python/IMU-Position-Tracking/main.py", line 367, in
Looks like the norm of x is zero here.