Package edu.wpi.first.wpilibj

Examples of edu.wpi.first.wpilibj.Solenoid


    m_leftStickButtonState[buttonNum] = false;
  }

  // Iterate over all the solenoids on the robot, constructing each in turn
  for (int solenoidNum = 1; solenoidNum <= NUM_SOLENOIDS; solenoidNum++) {
    m_solenoids[solenoidNum-1] = new Solenoid(solenoidNum);
  }

  // Set drive mode to uninitialized
  m_driveMode = UNINITIALIZED_DRIVE;
View Full Code Here


     * Creates a new solenoid on a defined channel.
     * Note: uses the default slot: 8
     * @param channel
     */
    public GRTSolenoid(int channel) {
        solenoid = new Solenoid(channel);
    }
View Full Code Here

     * Creates a new solenoid on a desired channel in a specific slot.
     * @param slot The slot where the 9472 "relay" module is plugged into.
     * @param channel
     */
    public GRTSolenoid(int slot, int channel) {
        solenoid = new Solenoid(slot, channel);
    }
View Full Code Here

     *
     * @param fwdPin
     * @param revPin
     */
    public GRTDoubleSolenoid(int fwdPin, int revPin) {
        forwardValve = new Solenoid(fwdPin);
        reverseValve = new Solenoid(revPin);
    }
View Full Code Here

    private Solenoid solenoid;
    public static final double ON = 1.0;
    public static final double OFF = 0.0;
   
    public GRTSolenoid(int channel) {
        solenoid = new Solenoid(channel);
    }
View Full Code Here

 
  private Solenoid forwardValve;
  private Solenoid reverseValve;
 
  public GRTTwoWaySolenoid(int fwdPin, int revPin){
    forwardValve = new Solenoid(fwdPin);
    reverseValve = new Solenoid(revPin);
  }
View Full Code Here

     * Creates a new solenoid on a desired channel in a specific slot.
     * @param slot The slot where the 9472 "relay" module is plugged into.
     * @param channel
     */
    public GRTSolenoid(int slot, int channel) {
        solenoid = new Solenoid(slot, channel);
    }
View Full Code Here

 
  private Solenoid forwardValve;
  private Solenoid reverseValve;
 
  public GRTTwoWaySolenoid(int fwdPin, int revPin){
    forwardValve = new Solenoid(fwdPin);
    reverseValve = new Solenoid(revPin);
  }
View Full Code Here

     */
    public void robotInit() {
        this.armUpButton = new DigitalInput(1);
        this.armDownButton = new DigitalInput(2);

        this.armValve = new Solenoid(1);
    }
View Full Code Here

public class Stinger extends Subsystem {
    Solenoid solenoidExtend;
    Solenoid solenoidRetract;
   
    public Stinger() {
        solenoidExtend = new Solenoid(2, RobotMap.STINGER_SOLENOID_EXTEND);
        solenoidRetract = new Solenoid(2, RobotMap.STINGER_SOLENOID_RETRACT);
    }
View Full Code Here

TOP

Related Classes of edu.wpi.first.wpilibj.Solenoid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.