Skip to content

Commit e1eea4b

Browse files
committed
used new way of passing state to a block
1 parent 6357c3a commit e1eea4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roboticstoolbox/blocks/uav.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ def output(self, t, inports, x):
270270
out["x"] = x[0:6]
271271
out["trans"] = np.r_[x[:3], vd]
272272
out["rot"] = np.r_[x[3:6], rpyd]
273-
out["vb"] = np.linalg.inv(R) @ self._x[6:9] # translational velocity mapped to body frame
274-
out["w"] = iW @ self._x[9:12] # RPY rates mapped to body frame
273+
out["vb"] = np.linalg.inv(R) @ x[6:9] # translational velocity mapped to body frame
274+
out["w"] = iW @ x[9:12] # RPY rates mapped to body frame
275275

276276
out["a1s"] = self.a1s
277277
out["b1s"] = self.b1s

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy