On first start() both motors move as expected - consecutive. But on second start() for this primitive, both motors are moving at the same time. 3rd start is ok, 4th start not ok, and so on …
If I set control="minjerk" the motors move sometimes erratic.
What’s wrong?
My Setup:
XL320
Raspberry 2
Miniconda Python 2.7.10
PyPot 2.10.0
Until now it’s just a kind of test program. I see this problem, when I invoke the ShowPrimitive (enter “g”) and the HidePrimitive (enter “h”) alternating. Other primitives are running fine.
If I switch on logging, I can see, that to both motors values are sent in the problem case.
Used config:
Good catch actually! I’ve spent some times reproducing what you observed and trying to understand were the problem came from.
I think it was because we forget to clear some values from the previous run of a primitive before re-running it. I’ve pushed a branch with a fix here: