View Single Post
  #7   Spotlight this post!  
Unread 24-02-2014, 09:25
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: BCD switch programming

Quote:
Originally Posted by SoftwareBug2.0 View Post
A quick grep of the 1425 2014 robot code reveals 67 switch statements. Do you code your state machines with a bunch of "if" statements?
Yeah we do, with boolean values holding the state of most mechanism on the robot. I'm being a bit dense, but I fail to see how a switch case could be used for that.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."