??? 01/17/10 21:27 Read: times |
#172523 - executing code takes time Responding to: ???'s previous message |
However, I noticed that the above code works seamlessly only for 3 servo motors. If I try to interface even a single motor more to the above code, the other servos start behaving erratically.
What could be the problem? executing code takes time and, for apps like this, you may eventually run out of time. servo d can only wait a finite time before being serviced and at some times the confluence of handling servos a, b and c will just take enough time to make the handling of servo d happen too late. get a faster processor (e.g. a SILabs f12x/f13x) or farm it out to multiple processors. Erik |