View Single Post
  #2   Spotlight this post!  
Unread 17-02-2010, 09:26
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: sample code to move robot autonomously

Yeah, gotta be careful with that reference registry.

Yep, all you need to do is add states (items) to your enum and add cases in the case structure to handle them. Just make sure to add a condition to move to the new state.

Also, check out FRCmastery (lvmastery.com too), they have a state machine video tutorial over there.
__________________
Twitter Profile

Last edited by Luke Pike : 17-02-2010 at 15:54. Reason: Added links
Reply With Quote