You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 6, 2025. It is now read-only.
@@ -74,7 +74,7 @@ public class SwerveSubsystem extends SubsystemBase
74
74
/**
75
75
* PhotonVision class to keep an accurate odometry.
76
76
*/
77
-
// private Vision vision;
77
+
privateVisionvision;
78
78
79
79
/**
80
80
* Initialize {@link SwerveDrive} with the directory provided.
@@ -107,7 +107,7 @@ public SwerveSubsystem(File directory)
107
107
// swerveDrive.pushOffsetsToEncoders(); // Set the absolute encoder to be used over the internal encoder and push the offsets onto it. Throws warning if not possible
108
108
if (visionDriveTest)
109
109
{
110
-
// setupPhotonVision();
110
+
setupPhotonVision();
111
111
// Stop the odometry thread if we are using vision that way we can synchronize updates better.
112
112
swerveDrive.stopOdometryThread();
113
113
}
@@ -129,13 +129,13 @@ public SwerveSubsystem(SwerveDriveConfiguration driveCfg, SwerveControllerConfig
129
129
Rotation2d.fromDegrees(0)));
130
130
}
131
131
132
-
// /**
133
-
// * Setup the photon vision class.
134
-
// */
135
-
// public void setupPhotonVision()
136
-
// {
137
-
// vision = new Vision(swerveDrive::getPose, swerveDrive.field);
0 commit comments