Drivebase Types

beginner10 min

Overview

Your drivebase choice sets how you mix joystick axes into wheel power. FTC teams commonly use tank, mecanum, or holonomic layouts.

Tank drive

Left and right sides each get one stick. Same direction on both sticks drives forward; opposite sticks turn in place.

Tank Drive Control

Each joystick controls one side of the robot.

while (opModeIsActive()) {
    double leftPower = -gamepad1.left_stick_y;
    double rightPower = -gamepad1.right_stick_y;
    leftDrive.setPower(leftPower);
    rightDrive.setPower(rightPower);
    telemetry.addData("Left Power", leftPower);
    telemetry.addData("Right Power", rightPower);
    telemetry.update();
}

Mecanum drive

Four mecanum wheels allow strafe. You need four motors and a weighted sum of forward, strafe, and rotate inputs.

Mecanum Drive Control

Y for forward/back, X for strafe, right stick X for rotation.

double y = -gamepad1.left_stick_y;
double x = gamepad1.left_stick_x;
double rx = gamepad1.right_stick_x;

double lf = y + x + rx;
double lb = y - x + rx;
double rf = y - x - rx;
double rb = y + x - rx;

leftFront.setPower(lf);
leftBack.setPower(lb);
rightFront.setPower(rf);
rightBack.setPower(rb);

Holonomic (omni) drive

Omni wheels in X or triangular layouts also allow omnidirectional motion. Wheel power formulas depend on your geometry.

Comparison

  • Tank: Simple, no strafe.
  • Mecanum: Strafe and rotate; four motors and more code.
  • Holonomic: Omnidirectional with omni wheels; layout-specific math.

Further Reading