Skip to content

Commit e4e07e1

Browse files
committed
tidyup Traj block, can work as a source or a function
1 parent f059d6a commit e4e07e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roboticstoolbox/blocks/arm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ def done(self, block=False, **kwargs):
699699

700700
super().done()
701701

702+
# ------------------------------------------------------------------------ #
702703

703704

704705
class Traj(FunctionBlock):
@@ -782,7 +783,7 @@ def start(self, **kwargs):
782783
self.trajfuncs.append(trajfunc(self.y0[i], self.yf[i], self.T))
783784

784785
def output(self, t=None):
785-
if not self.time:
786+
if self.time:
786787
t = self.inputs[0]
787788

788789
out = []

0 commit comments

Comments
 (0)