limelight delay

This commit is contained in:
66945
2022-04-02 13:17:12 -06:00
parent 232cd94fa4
commit 5e30c924be
@@ -44,7 +44,10 @@ public class VisionOdometry extends SubsystemBase {
* @param shooter The turret subsystem * @param shooter The turret subsystem
*/ */
public VisionOdometry(SwerveDrive drive, Turret shooter) { public VisionOdometry(SwerveDrive drive, Turret shooter) {
m_camera = new PhotonCamera(VisionConstants.NAME); do {
m_camera = new PhotonCamera(VisionConstants.NAME);
} while(m_camera.getLatestResult().getLatencyMillis() > 0.d);
m_drive = drive; m_drive = drive;
m_shooter = shooter; m_shooter = shooter;