Package me.autobot.lib.robot.drivebase
Class TankDrive
java.lang.Object
me.autobot.lib.robot.drivebase.TankDrive
A drivebase that uses tank drive
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drive
(double leftSide, double rightSide) Drives the robot with the given speed and rotation.
-
Constructor Details
-
TankDrive
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.
-