Quote:
Originally Posted by Sparkyshires
You could also use a switch-case statement, would definitely be one of the few uses in robot programming to use it. The only reason we don't is just that switch-case statements are so rarely useful in FRC programming that we normally forget about them 
|
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?