Examples of Victor


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

Examples of edu.wpi.first.wpilibj.Victor

    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

Examples of edu.wpi.first.wpilibj.Victor

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

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

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

Examples of edu.wpi.first.wpilibj.Victor

        //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

Examples of edu.wpi.first.wpilibj.Victor

     * @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

Examples of edu.wpi.first.wpilibj.Victor

*/
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

Examples of edu.wpi.first.wpilibj.Victor

   
    // 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
Copyright © 2018 www.massapi.com. 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.