|
Re: Help with speed control set up
Have you run it in debug mode and probed the values to see if they are what you expect?
A couple of problems with the loop itself:
- That loop does need a delay to avoid maxing out the CPU as it's doing now.
- That loop executes only once. When you really use it is it inside some other loop or are you using the continuously looping debug (the button with two arrows chasing each other)?
It's difficult to tell how your math works itself out.
What are typical values you are using for Sonar Min and Sonar Max?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 23-02-2014 at 20:16.
|