-
Notifications
You must be signed in to change notification settings - Fork 374
Description
ValueError Traceback (most recent call last)
Cell In[20], line 18
16 a23 = dt[filterstep]*x[3]np.cos(x[2])
17 a24 = dt[filterstep]np.sin(x[2])
---> 18 JA = np.matrix([[1.0, 0.0, a13, a14],
19 [0.0, 1.0, a23, a24],
20 [0.0, 0.0, 1.0, 0.0],
21 [0.0, 0.0, 0.0, 1.0]])
24 # Calculate the Process Noise Covariance Matrix
25 sGPS = 0.58.8dt[filterstep]**2 # assume 8.8m/s2 as maximum acceleration
File ~\anaconda3\envs\drone\Lib\site-packages\numpy\matrixlib\defmatrix.py:146, in matrix.new(subtype, data, dtype, copy)
143 data = _convert_from_string(data)
145 # now convert data to an array
--> 146 arr = N.array(data, dtype=dtype, copy=copy)
147 ndim = arr.ndim
148 shape = arr.shape
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (4, 4) + inhomogeneous part.