View Single Post
  #2   Spotlight this post!  
Unread 22-02-2011, 18:23
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Pneumatics WindRiver Programming HELP

When you press your buttons, you should be able to see the small green LEDs changing on top of the solenoid breakout board. Are you seeing that?

The problem with your code looks like it might be in the for loop.

You start with indexVar=1 and exit the loop if indexVar is > 2, so you will only check indexVar values of 1 and 2 but you have cases where it looks like you want to check up to 12.