Skip to content

Commit

Permalink
worked on camera placement
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Feb 25, 2025
1 parent 432175e commit ce0cb32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static class VisionConstants {
public static final VisionPoseEstimatorConstants arducamOne =
new VisionPoseEstimatorConstants(
arducamOneName,
new Transform3d(new Translation3d(0, 0, 1), new Rotation3d()),
new Transform3d(new Translation3d(0, 0.3, 1), new Rotation3d(0, 1, -Math.PI / 2)),
0.2,
0.0001,
3,
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/subsystems/Swerve.java
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ private void updateVisionPoseEstimates() {

var estimates = cam.getNewEstimates();

DogLog.log(
"Swerve/" + cam.camName + " Position", new Pose3d(getPose()).transformBy(cam.robotToCam));

// process estimates
estimates.forEach(
(estimate) -> {
Expand Down

0 comments on commit ce0cb32

Please sign in to comment.