Holonomic Vector Drive Task
constructor(xSupplier: Supplier<Float>, ySupplier: Supplier<Float>, rSupplier: Supplier<Float>, @NotNull mecanumDrive: MecanumDrive, fieldCentricEnabled: BooleanSupplier)
Constructor for HolonomicVectorDriveTask.
Parameters
x Supplier
The supplier for the Cartesian x-axis input
y Supplier
The supplier for the Cartesian y-axis input, note that this will be inverted
r Supplier
The supplier for the clockwise rotation input
mecanum Drive
The MecanumDrive to use
field Centric Enabled
A BooleanSupplier that returns whether field centric drive is enabled
constructor(driver: Gamepad, @NotNull mecanumDrive: MecanumDrive, fieldCentricEnabled: BooleanSupplier)
Constructor for HolonomicVectorDriveTask using a default Mecanum binding. Left stick controls translation, right stick controls rotation.
Parameters
driver
The gamepad to use for driving
mecanum Drive
The MecanumDrive to use
field Centric Enabled
A BooleanSupplier that returns whether field centric drive is enabled