HolonomicVectorDriveTask

constructor(xSupplier: Supplier<Float>, ySupplier: Supplier<Float>, rSupplier: Supplier<Float>, @NotNull mecanumDrive: MecanumDrive, fieldCentricEnabled: BooleanSupplier)

Constructor for HolonomicVectorDriveTask.

Parameters

xSupplier

The supplier for the Cartesian x-axis input

ySupplier

The supplier for the Cartesian y-axis input, note that this will be inverted

rSupplier

The supplier for the clockwise rotation input

mecanumDrive

The MecanumDrive to use

fieldCentricEnabled

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

mecanumDrive

The MecanumDrive to use

fieldCentricEnabled

A BooleanSupplier that returns whether field centric drive is enabled