|
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?
|