withPhoton

fun withPhoton(swerveDrive: SwerveDrive, photonModule: PhotonModule, translationSpeed: () -> Double, strafeSpeed: () -> Double): TrackTarget

Creates a TrackTarget command using a PhotonVision camera.

Return

TrackTarget command configured for PhotonVision.

Parameters

swerveDrive

The swerve drive subsystem.

photonModule

The PhotonVision module.

translationSpeed

Supplier for forward/backward speed.

strafeSpeed

Supplier for left/right speed.