View Single Post
  #1   Spotlight this post!  
Unread 31-03-2011, 23:32
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 146
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Reading Driver Station Input to select Autonomous Routine

In past years, we had a little piece of code that was in our 'Disabled()' function which read some switches on our driver station to select an autonomous routine (basically set a variable to the number of the selected routine). This year we can't seem to get that to work at "real" fields. It works fine when we're testing but when we're hooked up to the field, the code within Disabled() never seems to get run before the match starts and we don't end up running the auto routine we intended to.

Someone said it should be ok to read the switches within our "Autonomous()" function but that seems to always give us all zeros.

For now, we're just hard coding our selection and deploying new code but it would be nice to get the switches working again. Any ideas?
Reply With Quote