Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy version?? #24

Open
MrBourriz opened this issue Jul 5, 2023 · 0 comments
Open

numpy version?? #24

MrBourriz opened this issue Jul 5, 2023 · 0 comments

Comments

@MrBourriz
Copy link


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.5
8.8
dt[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant