AlignToContourTask

constructor(xSupplier: DoubleSupplier, ySupplier: DoubleSupplier, rSupplier: DoubleSupplier, drive: BunyipsSubsystem, processor: Processor<ContourData>, controller: 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

controller

the PID controller to use for aligning to a target


constructor(driver: Gamepad, drive: BunyipsSubsystem, processors: Processor<ContourData>, controller: 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

processors

the vision processor to use

controller

the PID controller to use for aligning to a target


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

Autonomous constructor

Parameters

timeout

the maximum time in seconds to run the task for

drive

the drivetrain to use, must be a RoadRunnerDrive

processor

the vision processor to use

controller

the PID controller to use for aligning to a target