I’ve recently added a library to my arduino code that I thought was useful, so I’m sharing it with the world.
http://ift.tt/1O21oY2
It allows you to move a servo at a speed slower then “as fast as possible”
It works by first calling SetAngle
void SetAngle(int newGoal, unsigned long thisTime, unsigned long goalTimeFromNow_);
which calculates the time it should take to go through each angle to the new goal.
Then periodically call Update with the current time, to see if the servo is moved.
bool Update(unsigned long currentMillSec);
It depends on the Arduino supported servo library.
from SpaceBlogs http://ift.tt/1opYHuR
via IFTTThttp://ift.tt/eA8V8J
No comments:
Post a Comment