View Single Post
  #2   Spotlight this post!  
Unread 08-02-2010, 23:04
ssica_jj ssica_jj is offline
Registered User
FRC #0368 (TKM)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Hawaii
Posts: 9
ssica_jj is an unknown quantity at this point
Re: problems with using switches for autonomous

Quote:
Originally Posted by Alan Anderson View Post
You still haven't said how you are determining that the value isn't being read. Are you probing any of the wires to find out whether the data from the Driver Station digital inputs is making it out of the Get Dig In?
When we ran the code, to check the values, we turned on the 'highlight execution' and saw that the only value being read is 0.

Quote:
Originally Posted by Alan Anderson View Post
I dont know why you're storing a string of text "1" and "0" characters in something called "Program Num", I am having a hard time understanding why you are doing a Concatenate instead of using the Append T/F String vi to do the appending it is designed for, and I have no idea why you put a Get Dig In there three times. Can you describe what that code is supposed to be doing?
There are 3 Get Dig In because we are using 3 switches. We are converting the value into string then concatenating them in order to create different combination for the case selector in autonomous. That way, we can have multiple autonomous modes and switch between them between matches without re-downloading the code each time. We are using the Append T/F String.vi to convert the digital input value into string.
Attached Thumbnails
Click image for larger version

Name:	2010disabled_wlabel.jpg
Views:	45
Size:	141.2 KB
ID:	8573  Click image for larger version

Name:	2009 atuo.jpg
Views:	46
Size:	145.3 KB
ID:	8574  
Reply With Quote