parallaxinc / Simple-Libraries

Contents of the SimpleIDE workspace folder and its Parallax Learn Simple Libraries subfolder.
http://learn.parallax.com/propeller-c-set-simpleide/update-your-learn-folder
21 stars 21 forks source link

servo360 - remove remove jitter from servo signal #94

Open AndyLindsay opened 6 years ago

AndyLindsay commented 6 years ago

Servo pulses exhibit jitter because they are delivered after the encoder pulses are checked. This can easily be remedied by setting up a waitcnt that triggers the pulse checking, and a separate waitcnt for delivering the servo control pulses.

The servo control pulses should also be delivered in pairs.

AndyLindsay commented 6 years ago

A waitcnt call now synchronizes servo pulses.