View Single Post
  #2   Spotlight this post!  
Unread 23-02-2014, 19:02
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
Reply With Quote