Skip to main content

General Functions

JAR Template provides a quick setup for arcade and tank control for tank drive robots, and holonomic control for holonomic robots. This setup is a quick way to check that each drive port is reversed properly and that the robot drives well.

control_arcade();

void Drive::control_arcade();

In JAR Template arcade, the left joystick controls forward/backward movement, and the right joystick controls turning.

control_tank();

void Drive::control_tank();

control_holonomic();

Holonomic control just means that the drivetrain can move in all directions, like a mecanum or X-Drive.

void Drive::control_holonomic();