mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-08 16:28:07 -06:00
limelight delay
This commit is contained in:
@@ -44,7 +44,10 @@ public class VisionOdometry extends SubsystemBase {
|
||||
* @param shooter The turret subsystem
|
||||
*/
|
||||
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_shooter = shooter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user