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 - Replace waitcnt(t+=dt) with while(CNT-t<dt) #114

Closed AndyLindsay closed 6 years ago

AndyLindsay commented 6 years ago

The waitcnt command can cause the library to become unresponsive for 53 seconds if a duty cycle measurement is missed. This can happen because from loose connection, voltage dips, and also when the PWR switch is in position 1. Although pressing and releasing RST snaps it out of it, there may be cases or boards where a brown-out causes this.

This will reintroduce jitter in the servo control signal, but that will have to be addressed in a future revision.

AndyLindsay commented 6 years ago

Completed 9/18.