Buxton

01-23-2011, 07:33 PM

I'm working on Robotics with Boe-Bot and I'm at the point of ControlServoRunTime.bs2 on page 83.

The equation for figuring out how many pulses I will need gives a figure of 1.6ms as code overhead.

How is that number obtained? While writing the program I put in 2 DEBUG ? counter lines so I could see it counting and the servos ran twice as long as they were suppose to. It took a little time for me to figure out why they were running longer and when I removed the line they ran correctly.

How would I calculate the figure for something like that?

Thanks for any help

Buxton

The equation for figuring out how many pulses I will need gives a figure of 1.6ms as code overhead.

How is that number obtained? While writing the program I put in 2 DEBUG ? counter lines so I could see it counting and the servos ran twice as long as they were suppose to. It took a little time for me to figure out why they were running longer and when I removed the line they ran correctly.

How would I calculate the figure for something like that?

Thanks for any help

Buxton