Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Update camera position calibration log name to match what's in the Li…
Browse files Browse the repository at this point in the history
…melight GUI
  • Loading branch information
simonstoryparker committed Nov 26, 2024
1 parent 7309be7 commit 489a0e0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/frc/robot/vision/Limelight.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,19 @@ public void logCameraPositionCalibrationValues() {
var robotPoseTargetSpace = RobotConfig.get().vision().robotPoseCalibrationTargetSpace();
var leftCameraRobotRelativePose =
getRobotRelativeCameraPosition(robotPoseTargetSpace, cameraPoseTargetSpace);
DogLog.log("CameraPositionCalibration/" + name + "/Right", leftCameraRobotRelativePose.getX());
DogLog.log("CameraPositionCalibration/" + name + "/Up", leftCameraRobotRelativePose.getY());
DogLog.log(
"CameraPositionCalibration/" + name + "/Forward", leftCameraRobotRelativePose.getZ());
"CameraPositionCalibration/" + name + "/LL Right", leftCameraRobotRelativePose.getX());
DogLog.log("CameraPositionCalibration/" + name + "/LL Up", leftCameraRobotRelativePose.getY());
DogLog.log(
"CameraPositionCalibration/" + name + "/Roll",
"CameraPositionCalibration/" + name + "/LL Forward", leftCameraRobotRelativePose.getZ());
DogLog.log(
"CameraPositionCalibration/" + name + "/LL Roll",
Units.radiansToDegrees(leftCameraRobotRelativePose.getRotation().getX()));
DogLog.log(
"CameraPositionCalibration/" + name + "/Pitch",
"CameraPositionCalibration/" + name + "/LL Pitch",
Units.radiansToDegrees(leftCameraRobotRelativePose.getRotation().getY()));
DogLog.log(
"CameraPositionCalibration/" + name + "/Yaw",
"CameraPositionCalibration/" + name + "/LL Yaw",
Units.radiansToDegrees(leftCameraRobotRelativePose.getRotation().getZ()));
}

Expand Down

0 comments on commit 489a0e0

Please sign in to comment.