Skip to content

Fix Turret Regressions - #233

Open
txrnqt wants to merge 3 commits into
mainfrom
fix-turret-camera-localization
Open

txrnqt wants to merge 3 commits into
mainfrom
fix-turret-camera-localization

Conversation

@txrnqt

@txrnqt txrnqt commented Oct 5, 2026

Copy link
Copy Markdown
Member

No description provided.

@txrnqt
txrnqt requested a review from wilsonwatson October 5, 2026 15:26
Comment thread src/main/java/frc/robot/localization/CameraProcessor.java Outdated
Comment thread src/main/java/frc/robot/localization/VisionObservation.java Outdated
Comment thread src/main/java/frc/robot/localization/CameraProcessor.java Outdated
Comment thread src/main/java/frc/robot/localization/DrivetrainState.java Outdated
Comment thread src/test/java/frc/robot/localization/TurretLocalizationTest.java
Comment thread src/test/java/frc/robot/localization/TurretLocalizationTest.java
Comment thread src/test/java/frc/robot/localization/TurretLocalizationTest.java
Comment thread src/test/java/frc/robot/localization/TurretLocalizationTest.java Outdated
Comment thread src/main/java/frc/robot/localization/CameraProcessor.java Outdated
Comment thread src/main/java/frc/robot/localization/DrivetrainState.java Outdated
Comment thread src/main/java/frc/robot/localization/DrivetrainState.java Outdated
Comment thread src/test/java/frc/robot/localization/TurretLocalizationTest.java
@@ -69,6 +87,19 @@ public CameraProcessor(CameraConstants cameraConstants, @Nullable TurretCameraAd
*/
public Result<VisionObservation, RejectionReason> process(PhotonPipelineResult result,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the two-parameter version. It only serves to confuse us later. Everywhere that currently needs it should know if the robot is real or not.

@@ -105,16 +94,30 @@ public void resetInit() {
*/
public void addOdometryObservation(SwerveModulePosition[] wheelPositions, Rotation2d gyroYaw,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as other. Don't keep the 3-var version. Just use the 4 var version everywhere, otherwise we'll forget and get weirdness in sim.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants