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 - Software Angle Limits #116

Closed AndyLindsay closed 6 years ago

AndyLindsay commented 6 years ago

My guess is that I added variables for this, but forgot to use them. Set defaults, use in angle decisions, add function for access

AndyLindsay commented 6 years ago

Resolved in commit: servo360 - Software Angle Limits #116

The angle can be limited by servo360_setAngleLimits.

This only limited in servo360_angle calls. That way, it does not impose any limits on servo360_speed and servo360_goto, which may end up passing control to the angle control system when speed/distance remaining is zero.

Example programs are in ...SimpleIDE\My Projects\Tests Servo360\Dev - Test Setting Angle Limits.side.