View Single Post
  #1   Spotlight this post!  
Unread 02-22-2016, 05:41 PM
ncarvo ncarvo is offline
Registered User
FRC #5473 (Team Spitfire)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2012
Location: Grand Rapids
Posts: 5
ncarvo is an unknown quantity at this point
Pneumatics not working

How do I set my pneumatics to my controller.

I currently have this.
if(liftshooter.getRawButton(1)){
shooter.set(DoubleSolenoid.Value.kForward);
}
else if(liftshooter.getRawButton(3)){
shooter.set(DoubleSolenoid.Value.kReverse);
}
else{
shooter.set(DoubleSolenoid.Value.kOff);
}

Up top I have

DoubleSolenoid shooter = new DoubleSolenoid(4,5);
I assume that 4,5 are the ports, and were sure thats correct, please help, asap.
Reply With Quote