drive Command
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
x Supplier
Supplier for forward speed (-1.0 to 1.0).
y Supplier
Supplier for sideways speed (-1.0 to 1.0).
rot Supplier
Supplier for rotational speed (-1.0 to 1.0).
field Oriented
Whether to drive field-oriented.