Tank Drive
constructor(constants: DriveConstants, coefficients: TankCoefficients, @Nullable imu: IMU, leftMotors: List<DcMotor>, rightMotors: List<DcMotor>)
Create a new TankDrive instance.
Parameters
constants
The drive constants for the robot
coefficients
The TankCoefficients for this drive
imu
The IMU for the robot. Can be set to null if you are using three-wheel odometry.
left Motors
The motors on the left side of the robot (e.g. Arrays.asList(fl, bl)
)
right Motors
The motors on the right side of the robot (e.g. Arrays.asList(fr, br)
)