AlignToAprilTagTask

constructor(@NonNull drive: Moveable, @NonNull at: AprilTag, targetTag: Int)

Autonomous constructor.

Parameters

drive

the drivetrain to use, which may be a BunyipsSubsystem that will auto-attach

at

the AprilTag processor to use

targetTag

the tag to align to, -1 for any tag


constructor(@Nullable passthrough: Supplier<PoseVelocity2d>, @NonNull drive: Moveable, @NonNull at: AprilTag, targetTag: Int)

TeleOp constructor.

Parameters

passthrough

the pose velocity passthrough for the drivetrain

drive

the drivetrain to use, which may be a BunyipsSubsystem that will auto-attach

at

the AprilTag processor to use

targetTag

the tag to align to, -1 for any tag


constructor(@NonNull driver: Gamepad, @NonNull drive: Moveable, @NonNull at: AprilTag, targetTag: Int)

Constructor for AlignToAprilTagTask using a default Mecanum binding.

Parameters

driver

The gamepad to use for driving

drive

the drivetrain to use, which may be a BunyipsSubsystem that will auto-attach

at

The AprilTag processor to use

targetTag

The tag to align to, -1 for any tag