View Single Post
  #40   Spotlight this post!  
Unread 20-03-2011, 08:59
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: Autonomy: How Did You Guys Do It?

Quote:
Originally Posted by PriyankP View Post
On that note, how often do other programmers call for inputs from sensors during autonomous and teleop periods? I've always called it at the beginning of every iteration but not sure if calling it every other iteration would made a huge difference.
Calling it at the beginning of the loop is probably the best idea. If you call it at the end, and the code hangs up for whatever reason, then you'll be running with stale data the next loop iteration. But in reality, it shouldn't matter that much.

We ubertubed 15/16 matches at Peachtree. Line tracking is working great for us
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.