HolonomicVectorDriveTask

constructor(@NonNull vel: Supplier<PoseVelocity2d>, @NonNull drive: Moveable, @NonNull fieldCentricEnabled: BooleanSupplier)

Constructor for HolonomicVectorDriveTask.

Parameters

vel

The supplier for the current pose velocity of the robot

drive

The holonomic drive to use, which you must ensure is holonomic as strafe commands will be called unlike the differential control task. This task will be auto-attached to this BunyipsSubsystem if possible. A localizer attached is required.

fieldCentricEnabled

A BooleanSupplier that returns whether field centric drive is enabled


constructor(@NonNull vel: Supplier<PoseVelocity2d>, @NonNull drive: Moveable)

Constructor for HolonomicVectorDriveTask on an always disabled field-centric mode.

Parameters

vel

The supplier for the current pose velocity of the robot

drive

The holonomic drive to use, which you must ensure is holonomic as strafe commands will be called unlike the differential control task. This task will be auto-attached to this BunyipsSubsystem if possible. A localizer attached is required.


constructor(@NonNull driver: Gamepad, @NonNull drive: Moveable, @NonNull 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

drive

The holonomic drive to use, which you must ensure is holonomic as strafe commands will be called unlike the differential control task. This task will be auto-attached to this BunyipsSubsystem if possible. A localizer attached is required.

fieldCentricEnabled

A BooleanSupplier that returns whether field centric drive is enabled


constructor(@NonNull driver: Gamepad, @NonNull drive: Moveable)

Constructor for HolonomicVectorDriveTask using a default Mecanum binding. Field-centric mode is disabled by default. Left stick controls translation, right stick controls rotation.

Parameters

driver

The gamepad to use for driving

drive

The holonomic drive to use, which you must ensure is holonomic as strafe commands will be called unlike the differential control task. This task will be auto-attached to this BunyipsSubsystem if possible. A localizer attached is required.