Package edu.wpi.first.wpilibj

Examples of edu.wpi.first.wpilibj.DigitalInput


        enc_FrontLeft.start();
        enc_FrontRight.start();
        enc_RearLeft.start();
        enc_RearRight.start();

        EitherOne = new DigitalInput(12);
    }
View Full Code Here


        this(i, i0, "");
    }

    public GRTSwitch(int channel, int pollTime, String id) {
        this.sleepTime = pollTime;
        input = new DigitalInput(channel);
        setState("State", OPEN);
        this.id = id;
        switchListeners = new Vector();
    }
View Full Code Here

        this(i, i0, "");
    }

    public GRTSwitch(int channel, int pollTime, String id) {
        this.sleepTime = pollTime;
        input = new DigitalInput(channel);
        setState("State", OPEN);
        this.id = id;
    }
View Full Code Here

        this(i, i0, "");
    }

    public GRTSwitch(int channel, int pollTime, String id) {
        this.sleepTime = pollTime;
        input = new DigitalInput(channel);
        setState("State", OPEN);
        this.id = id;
        switchListeners = new Vector();
    }
View Full Code Here

    private Vector encoderListeners;
    public static final double DIST_PER_PULSE = Math.PI * 16/(360 * 4 *12);
    private boolean previousValue;
    private int count = 0;
        public GRTSingleChannelEncoder(int channela, int pollTime, String id){
        rotaryEncoder = new DigitalInput(channela);
        setSleepTime(pollTime);
        encoderListeners = new Vector();
        this.id = id;
    }
View Full Code Here

        LiveWindow.addActuator("CATAPULT", "latchServo", new PWM(RobotMap.latchServo));
       
       
        //sensors
        LiveWindow.addSensor("CATAPULT", "winchEncoder", new Encoder(RobotMap.winchEncoderA, RobotMap.winchEncoderB, false));
        LiveWindow.addSensor("CATAPULT", "limitSwitch", new DigitalInput(RobotMap.limitSwitch));
       
    }
View Full Code Here

    /**
     * The rest of the robot has initialized, this is the place to create WPI objects
     */
    public void robotInit() {
        this.armUpButton = new DigitalInput(1);
        this.armDownButton = new DigitalInput(2);

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

        setDefaultCommand(new ConveyorAssistAcquire());
    }
   
    public Conveyor() {
        roller = new Victor(RobotMap.CONVEYOR_ROLLER);
        upperSensor = new DigitalInput(RobotMap.UPPER_CONVEYOR_SENSOR);
        lowerSensor = new DigitalInput(RobotMap.LOWER_CONVEYOR_SENSOR);
    }
View Full Code Here

TOP

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

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.