View Single Post
  #3   Spotlight this post!  
Unread 10-07-2010, 01:55
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: paper: Cheesy Poofs Robot Software 2010

Thanks for sharing! I love looking at other teams' code to learn new tricks.

Out of curiosity, what led to the decision to use a separate singleton class to hold all the sensors, actuators and logic instead of putting them in the class that inherits from IterativeRobot?

I really like the constants class and how you can read and save constants from/to a file. I'd definitely like for my team to adopt this, although I'm thinking of using preprocessor macros to ensure existence of constants at compile-time and avoid the (albeit negligible) performance cost of associative array lookups.

The auton command lists are really cool, too.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
Reply With Quote