MoveToAprilTagTask

constructor(timeout: Measure<Time>, drive: BunyipsSubsystem, aprilTag: AprilTag, targetTag: Int)

Autonomous constructor.

Parameters

timeout

the timeout for the task

drive

the drivetrain to use, must be a RoadRunnerDrive

aprilTag

the AprilTag processor to use

targetTag

the tag to target. -1 for any tag


constructor(xSupplier: DoubleSupplier, ySupplier: DoubleSupplier, rSupplier: DoubleSupplier, drive: BunyipsSubsystem, aprilTag: AprilTag, targetTag: Int)

TeleOp constructor with default values.

Parameters

xSupplier

x (strafe) value

ySupplier

y (forward) value

rSupplier

r (rotate) value

drive

the drivetrain to use, must be a RoadRunnerDrive

aprilTag

the AprilTag processor to use

targetTag

the tag to target. -1 for any tag


constructor(gamepad: Gamepad, drive: BunyipsSubsystem, aprilTag: AprilTag, targetTag: Int)

TeleOp constructor using a default Mecanum binding.

Parameters

gamepad

the gamepad to use for driving

drive

the drivetrain to use, must be a RoadRunnerDrive

aprilTag

the AprilTag processor to use

targetTag

the tag to target. -1 for any tag