PropBasic Counters & Servos
skynugget
Posts: 172
Hello All!
i am trying to emulate JonnyMacs neat way of driving multiple servos with the system counter (jm_servo8_adv.spin) in PropBasic. Here is what i came up with so far, and it "kind of" works, but there is no real tourqe on the servo turn, and it chatters like a mofo when it gets to the target location.
i suspect my math for the timing is off, does anything see anything wrong with this?
thanks in advance!
i am trying to emulate JonnyMacs neat way of driving multiple servos with the system counter (jm_servo8_adv.spin) in PropBasic. Here is what i came up with so far, and it "kind of" works, but there is no real tourqe on the servo turn, and it chatters like a mofo when it gets to the target location.
i suspect my math for the timing is off, does anything see anything wrong with this?
thanks in advance!
Comments
from this post:
http://forums.parallax.com/showthread.php?135098-PropBasic-Bug
So in order to check if the same bug is still present you could multiply by 80 manually (*5*16): And the other location could just load 200000 (2500*80) directly.
here is what is generated:
if you the first set_servo you use has a speed other then 0, the servo will swing all the way to the srvmin pos at full speed, then will turn to the requested position at the requested speed. i got around it by just initiating all the servos with no speed control when i start the program.
special thanks to bean, jonnymac, and parallax.
if ya make it better please share!