Merge branch 'cleanup' of https://github.com/Team4388/2022NoWayHome into cleanup

This commit is contained in:
aarav18
2022-04-02 13:53:49 -06:00
@@ -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;