driveCommand

fun driveCommand(xSupplier: () -> Double, ySupplier: () -> Double, rotSupplier: () -> Double, fieldOriented: Boolean = true): Command

Creates a command to drive with joystick inputs.

Return

A command that drives the robot.

Parameters

xSupplier

Supplier for forward speed (-1.0 to 1.0).

ySupplier

Supplier for sideways speed (-1.0 to 1.0).

rotSupplier

Supplier for rotational speed (-1.0 to 1.0).

fieldOriented

Whether to drive field-oriented.