Package edu.wpi.first.wpilibj

Examples of edu.wpi.first.wpilibj.RobotDrive


     * The constructor creates all of the objects used for the different inputs and outputs of
     * the robot.  Essentially, the constructor defines the input/output mapping for the robot,
     * providing named objects for each of the robot interfaces.
     */
    public newarkBreakaway() {
        m_robotDrive = new RobotDrive(1, 3, 2, 4);// Create a robot using right/left robot drive on PWMs 1-4

  // Acquire the Driver Station object
  m_ds = DriverStation.getInstance();
  m_priorPacketNumber = 0;
  m_dsPacketsReceivedInCurrentSecond = 0;
View Full Code Here


   
    public DriveTrain() {

        super("DriveTrain");

        drive = new RobotDrive(LEFT_FRONT_MOTOR, LEFT_REAR_MOTOR, RIGHT_FRONT_MOTOR, RIGHT_REAR_MOTOR);

        drive.setSafetyEnabled(false);

        if(RobotMap.DRIVE_FRONT_LEFT_REVERSED) {
            drive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);
View Full Code Here

    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

    private Joystick leftStick;
    private Joystick rightStick;

    public Team2927Robot() {
        // put initialization code here
        drivetrain = new RobotDrive(1, 2);   // create RobotDrive
        leftStick = new Joystick(1);    //   and joysticks
        rightStick = new Joystick(2);
    }
View Full Code Here

    SwitchControls SCC = new SwitchControls();
    SwitchStyle SSC = new SwitchStyle();

    public Team2927() {
        // put initialization code here
        drivetrain = new RobotDrive(1, 2);   // create RobotDrive
        leftStick = new Joystick(1);    //   and joysticks
        rightStick = new Joystick(2);
        drivetrain.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);
    }
View Full Code Here

    public boolean switchCon = false;
    public AxisCamera camera;

    public Team2927() {
        // put initialization code here
        drivetrain = new RobotDrive(1, 2);   // create RobotDrive
        leftStick = new Joystick(1);    //   and joysticks
        rightStick = new Joystick(2);
        drivetrain.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);
    }
View Full Code Here

TOP

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

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.