Package edu.wpi.first.wpilibj

Examples of edu.wpi.first.wpilibj.PWM


     * Creates a new LED in the desired channel at the desired brightness
     * @param channel The channel
     * @param brightness Should be a value from 0 to 255
     */
    public GRTLED(int channel, int brightness) {
        led = new PWM(channel);
        brightness = this.brightness;
    }
View Full Code Here


     * Creates a new LED in the desired channel at the desired brightness
     * @param channel The channel
     * @param brightness Should be a value from 0 to 255
     */
    public GRTLED(int channel, int brightness) {
        led = new PWM(channel);
        brightness = this.brightness;
    }
View Full Code Here

        Scheduler.getInstance().run();
    }
   
   
    public void testInit() {
        LiveWindow.addActuator("DRIVE", "leftMotorUno", new PWM(RobotMap.leftMotorUno));
        LiveWindow.addActuator("DRIVE", "leftMotorDue", new PWM(RobotMap.leftMotorDue));
       
        LiveWindow.addActuator("DRIVE", "rightMotorUno", new PWM(RobotMap.rightMotorUno));
        LiveWindow.addActuator("DRIVE", "rightMotorDue", new PWM(RobotMap.rightMotorDue));
       
       
       
        LiveWindow.addActuator("COLLECTOR", "leftCollector", new PWM(RobotMap.leftCollector));
        LiveWindow.addActuator("COLLECTOR", "rightCollector", new PWM(RobotMap.rightCollector));
       
        LiveWindow.addActuator("CATAPULT", "winchMotor", new PWM(RobotMap.winchMotor));
        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

TOP

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

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.