Quote:
Originally Posted by peng432
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);