with Photon
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
swerve Drive
The swerve drive subsystem.
photon Module
The PhotonVision module.
translation Speed
Supplier for forward/backward speed.
strafe Speed
Supplier for left/right speed.