mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
limelight delay
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user