Drivebase
EasyStack Drivebases Guide
EasyStack drivebases translate movement requests into commands for the motors or swerve modules on a robot. This guide explains how to create each drivebase, configure its output, supply driver inputs, and stop it. The examples use the package and method names in the nine Java files provided with this guide.
The guide follows the same practical format as the main documentation: a short explanation, a focused code example, and the behavior to expect. Code examples appear as images. They use already configured hardware objects so that the drivebase behavior is clear without assuming constructors from hardware classes that were not provided.
Choosing a drivebase
| Drivebase | Hardware arrangement | Main control methods |
|---|---|---|
DifferentialDrive | A left side and a right side | Arcade and tank drive |
MecanumDrive | Four mecanum wheels | Robot centric and field centric |
HolonomicDrive | Three angled wheels or four wheels | Robot centric and field centric |
SwerveDrivetrain | Four independently steered modules | Robot relative chassis velocity |
Guide sections
- Drivebase Basics
- Differential Drive
- Mecanum Drive
- Holonomic Drive
- Swerve Drive
Within Swerve Drive: ChassisSpeed, SwerveModule, and SwerveDrivetrain.
Start with the shared concepts, then read the section for your drivetrain. Swerve has three connected sections: ChassisSpeed represents the requested motion, SwerveModule controls one wheel assembly, and SwerveDrivetrain coordinates four modules.
The examples describe the supplied implementation. In particular, swerve uses physical velocity inputs, its module offset convention needs attention, and its output limit behaves differently from the power based drivebases. Those details are explained where they affect setup and operation.
Última actualización 2026-11-16