Skip to content

Commit

Permalink
remove unnecessary camera transform
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewChoulas committed Dec 22, 2023
1 parent f3625c0 commit d558e3e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class LimelightVision(val io: LimelightVisionIO) : SubsystemBase() {
val targetToCamera =
gamePiecePose
.relativeTo(
currentPose.toPose3d().transformBy(VisionConstants.Limelight.LL_TRANSFORM)
currentPose.toPose3d()
)
.toTransform3d()
.inverse()
Expand Down Expand Up @@ -348,7 +348,6 @@ class LimelightVision(val io: LimelightVisionIO) : SubsystemBase() {
distanceToTarget.inMeters,
Rotation3dWPILIB(0.0, -target.ty.inRadians, -target.tx.inRadians)
)

Logger.getInstance().recordOutput("LimelightVision/distanceToTarget", distanceToTarget.inMeters)

// figure out which way this target is facing using yaw of robot and yaw of camera
Expand Down

0 comments on commit d558e3e

Please sign in to comment.