Commit 0f5a0e71 authored by bliss administrator's avatar bliss administrator Committed by Sebastien Petitdemange

pi_e712: TWS pointNumber starts in 1

parent 76427115
......@@ -699,7 +699,9 @@ class PI_E712(Controller):
else traj.events_positions
)
for evt in events:
commmands.append("TWS 1 %d 1" % (round(evt["time"] / servo_cycle)))
commmands.append(
"TWS 1 %d 1" % (int((evt["time"] // servo_cycle) + 1.5))
)
for cmd in commmands:
self.command(cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment