After mastering arcade drive, the natural next step is to understand why so many competitive teams use mecanum wheels — and what that demands from the code.
What is a holonomic drive?Link to this section
A regular drive needs to turn the robot to change direction. A holonomic drive can move in any direction without turning first — a real tactical advantage on tight fields, but one that requires more sophisticated control logic.
- Understand the difference between a regular drive and a holonomic one.
- Learn the idea of moving the robot in different directions.
Mecanum wheelsLink to this section
The angle of the rollers on each mecanum wheel is what enables this sideways movement: each wheel contributes a different combination of force, and it's the sum of those forces that determines where the robot actually goes.
- Understand how wheel roller angles enable lateral movement.
- Visualize how each wheel contributes to the overall movement.
Mecanum codeLink to this section
Programming a mecanum drive means calculating, on every cycle, the correct power for each of the four wheels based on the combined direction and rotation gamepad inputs — logic that is more complex than arcade drive, but built on the same principles.
- Build the basic logic of a mecanum drive.
- Use the Gamepad's inputs to control direction and rotation.
- Test and tune the drivetrain's behavior.