Skip to content

Commit

Permalink
woops re-add offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
amquake committed Oct 15, 2023
1 parent cb6af1c commit 56aeae1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public TrackedTarget(
AprilTagDetection tagDetection,
AprilTagPoseEstimate tagPose,
TargetCalculationParameters params) {
m_targetOffsetPoint = new Point(tagDetection.getCenterX(), tagDetection.getCenterY());
m_robotOffsetPoint = new Point();
var yawPitch =
TargetCalculations.calculateYawPitch(
params.cameraCenterPoint.x,
Expand Down Expand Up @@ -141,6 +143,8 @@ public TrackedTarget(
}

public TrackedTarget(ArucoDetectionResult result, TargetCalculationParameters params) {
m_targetOffsetPoint = new Point(result.getCenterX(), result.getCenterY());
m_robotOffsetPoint = new Point();
var yawPitch =
TargetCalculations.calculateYawPitch(
params.cameraCenterPoint.x,
Expand Down

0 comments on commit 56aeae1

Please sign in to comment.