you must only do one thing per cycle. for example...
Code:
py_1 = 127 'PWM 1 is set to neutral
py_1 = 254 'PWM 1 is set to full foward
py_1 = 0 'PWM 1 is set to full reverse
SEROUT [255,255,py_1,<var>,<var>,...]
in that example, the first PWM output would only output 0, because that's what it was last set to. the signal is only sent to the motors DURING the SEROUT command. anything changed before is not recognized, so you need something to count loops, so it goes straight for x cycles, then turns left, and so on. it's a bit more complicated, and i don't have anything done yet, and well, i'm still adjusting my mind to the backwards logic of PBASIC 2 (we don't have 2.5 yet, so 2 it is).