Class TankDrive

java.lang.Object
me.autobot.lib.robot.drivebase.TankDrive

public class TankDrive extends Object
A drivebase that uses tank drive
  • Constructor Details

    • TankDrive

      public TankDrive(Motor topLeft, Motor topRight, Motor bottomLeft, Motor bottomRight)
      Creates a new TankDrive object.
      Parameters:
      topLeft - The top left motor. This motor is on the top left of the robot.
      topRight - The top right motor. This motor is on the top right of the robot.
      bottomLeft - The bottom left motor. This motor is on the bottom left of the robot.
      bottomRight - The bottom right motor. This motor is on the bottom right of the robot.
      See Also:
  • Method Details

    • drive

      public void drive(double leftSide, double rightSide)
      Drives the robot with the given speed and rotation.
      Parameters:
      leftSide - The speed of the left side of the robot. Positive is forward, negative is backward.
      rightSide - The speed of the right side of the robot. Positive is forward, negative is backward.