Package edu.wpi.first.wpilibj

Examples of edu.wpi.first.wpilibj.Victor


    /**
     * Creates a motor controlled by a Victor Speed controller. Needs a port to be specified
     * @param channel
     */
    public GRTVictor(int channel) {
        victor = new Victor(channel);
    }
View Full Code Here


    public static final int ARCADE_DRIVE = 1;
    public static final int ARCADE_SPIN_DRIVE = 2;
    public static final int SPEED_CURVE_DRIVE = 3;
   
    public GRTDriveTrain(int leftChannel, int rightChannel) {
        left = new Victor(leftChannel);
        right = new Victor(rightChannel);
        driveTrain = new RobotDrive(left, right);
        driveMode = 0;
    }
View Full Code Here

*/
public class GRTVictor extends Actuator implements PIDOutput{
    Victor victor;

    public GRTVictor(int channel) {
        victor = new Victor(channel);
    }
View Full Code Here

    /**
     * Creates a motor controlled by a Victor Speed controller. Needs a port to be specified
     * @param channel
     */
    public GRTVictor(int channel) {
        victor = new Victor(channel);
    }
View Full Code Here

        //setDefaultCommand(new MySpecialCommand());
        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

     * @param encoderBChannel Input for the other encoder.
     * @param reverse Not used.  Was for reversing encoder direction.
     */
    public VictorSpeed(int victorChannel, int encoderAChannel, int encoderBChannel) {
        speedSetpoint = 0;
        victor = new Victor(victorChannel);

        encoder = new Encoder(encoderAChannel, encoderBChannel, false, CounterBase.EncodingType.k4X);
        encoder.setDistancePerPulse(ENCODER_RPM_PER_PULSE);
        encoder.setPIDSourceParameter(Encoder.PIDSourceParameter.kRate); // use e.getRate() for feedback
        encoder.start();
View Full Code Here

*/
public class VictorRobotDrive extends RobotDrive {
   
    public VictorRobotDrive(int frontLeftMotor, int rearLeftMotor,
            int frontRightMotor, int rearRightMotor) {
        super(new Victor(frontLeftMotor), new Victor(rearLeftMotor), new Victor(frontRightMotor), new Victor(rearRightMotor));
    }
View Full Code Here

   
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
   
    public Acquirer() {
        roller = new Victor(RobotMap.ACQUIRER_ROLLER);
        isAcquiring = false;
    }
View Full Code Here

TOP

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

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.