Skip to content

Commit

Permalink
Clean up vision code
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Apr 5, 2024
1 parent 7a131a7 commit 779f708
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/frc/robot/subsystems/Vision.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ public void updatePoseEstimator() {

if (result.isPresent()) {
EstimatedRobotPose estPose = result.get();
Pose2d oldPose = estPose.estimatedPose.toPose2d();
Pose2d pose = new Pose2d(oldPose.getX(), oldPose.getY(),
oldPose.getRotation());
Pose2d pose = estPose.estimatedPose.toPose2d();

Matrix<N3, N1> stddevs = photonCamera.getEstimationStdDevs(pose,
SINGLE_TAG_STD_DEVS,
Expand Down

0 comments on commit 779f708

Please sign in to comment.