View Single Post
  #4   Spotlight this post!  
Unread 27-01-2014, 14:42
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Help with Programming Pnuematics

Quote:
Originally Posted by peng432 View Post
thanks for the reply,
Our team is using a double solenoid would the code still be the same or would their be any minor changes?
Code:
DoubleSolenoid solenoid = new Solenoid(1, 2);
solenoid.set(DoubleSolenoid.Value.kForward);
kReverse would fire it the opposite direction.

Give that a try. You can also do something like:
Code:
Solenoid solenoid1 = new Solenoid(1);
Solenoid solenoid2 = new Solenoid(2);
solenoid1.set(true);
solenoid2.set(false);
Reply With Quote