with Photon
fun withPhoton(swerveDrive: SwerveDrive, photonModule: PhotonModule, translationSpeed: () -> Double = { 0.0 }, strafeSpeed: () -> Double = { 0.0 }): AlignToTarget
Creates an AlignToTarget command using a PhotonVision camera.
Return
AlignToTarget 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.