MoveToContourTask

constructor(xSupplier: DoubleSupplier, ySupplier: DoubleSupplier, rSupplier: DoubleSupplier, drive: BunyipsSubsystem, processor: Processor<ContourData>, translationController: PIDF, rotationController: PIDF)

TeleOp constructor.

Parameters

xSupplier

x (strafe) value

ySupplier

y (forward) value

rSupplier

r (rotate) value

drive

the drivetrain to use, must be a RoadRunnerDrive

processor

the vision processor to use

translationController

the PID controller for the translational movement

rotationController

the PID controller for the rotational movement


constructor(driver: Gamepad, drive: BunyipsSubsystem, processor: Processor<ContourData>, translationController: PIDF, rotationController: PIDF)

TeleOp constructor using a default Mecanum binding.

Parameters

driver

the gamepad to use for driving

drive

the drivetrain to use, must be a RoadRunnerDrive

processor

the vision processor to use

translationController

the PID controller for the translational movement

rotationController

the PID controller for the rotational movement


constructor(timeout: Measure<Time>, drive: BunyipsSubsystem, processor: Processor<ContourData>, translationController: PIDF, rotationController: PIDF)

Autonomous constructor.

Parameters

timeout

the maximum timeout for the task

drive

the drivetrain to use, must be a RoadRunnerDrive

processor

the vision processor to use

translationController

the PID controller for the translational movement

rotationController

the PID controller for the rotational movement