Go to Post If I was a balding man, and Dean Kamen signed MY head, I'd immediately make my way to the nearest tattoo parlor and have them make it a permanent fixture. I wouldn't have washed it off! Just saying. - Carolyn_Grace [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-31-2011, 11:32 PM
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:22 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi