Thread: Joysticks
View Single Post
  #1   Spotlight this post!  
Unread 18-02-2011, 10:51
pigpc1993 pigpc1993 is offline
Registered User
AKA: Colin Feeney
FRC #3716 (WARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Manhasset, NY
Posts: 41
pigpc1993 is an unknown quantity at this point
Joysticks

We are having issues with our code on programming the joysticks. When we press the button our solenoids switch but sometimes they will switch right back. The Dashboard shows that they switch and then switch back sometimes. So I know they are opening. Any suggestions. Here is the code we are using

Code:
            if(js2.getRawButton(3) == true && j2b3 == false){
                s1.changeSolenoid(a1, a1End);
                s2.changeSolenoid(a2, a2End);
                j2b2 = true;
            }
            else{
                j2b2 = false;
            }
Reply With Quote