/SwerveDriveVisualisation

A visualisation of the math behind swerve drive used in FRC robots using the Processing library.

Primary LanguageJava

Swerve Drive Visualisation

This project is a simple visualisation of the speeds and angles of the vectors of a swerve drive for a given 3-axis input.

It serves both as a nice visualisation for an omnidirectional drive system, and as a help for those trying to understand the math behind a system like this.

Controls

The simulation features minimalistic controls for the Logitech Extreme 3D Pro controller (currently the only supported controller):

  • Left Mouse Click resizes the chassis of the robot.
  • X axis of the controller controls the left/right motion.
  • Y axis of the controller controls the forward/backward motion.
  • Rotation axis of the controller controls the rotation motion.

Resources