View Single Post
  #6   Spotlight this post!  
Unread 21-03-2011, 16:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: old robot kicker question

Quote:
Originally Posted by ratdude747 View Post
I added a new while loop to the periodic tasks.
attached is the image of what is in the loop.
does it look right?
You're going to need to throttle that loop. Without a wait like what's in the other periodic task loops, it'll run full bore and eat up all the CPU time it can. 50 ms is probably a good value.

Otherwise, it looks okay, except that I can't tell what's in the other cases of the power selection. The contents should be obvious, but there's always the chance that something got miswired by mistake.
Reply With Quote