From 4d5e093de8b95deaf31806acc54a9be000ee19d5 Mon Sep 17 00:00:00 2001 From: SamueljWilson <115675537+SamueljWilson@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:58:20 -0700 Subject: [PATCH] Update getting-target-data.rst Documentation is behind recent change. --- .../programming/photonlib/getting-target-data.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/docs/programming/photonlib/getting-target-data.rst b/source/docs/programming/photonlib/getting-target-data.rst index 0b1ad9db..7ed8b0d3 100644 --- a/source/docs/programming/photonlib/getting-target-data.rst +++ b/source/docs/programming/photonlib/getting-target-data.rst @@ -108,8 +108,7 @@ Getting Data From A Target * double ``getArea()``/``GetArea()``: The area (how much of the camera feed the bounding box takes up) as a percent (0-100). * double ``getSkew()``/``GetSkew()``: The skew of the target in degrees (counter-clockwise positive). * double[] ``getCorners()``/``GetCorners()``: The 4 corners of the minimum bounding box rectangle. -* Transform2d ``getCameraToTarget()``/``GetCameraToTarget()``: The camera to target transform. See `2d transform documentation here `_. - +* Transform3d ``getBestCameraToTarget()``/``GetBestCameraToTarget()``: The camera to target transform. .. tab-set-code:: .. code-block:: java @@ -119,8 +118,8 @@ Getting Data From A Target double pitch = target.getPitch(); double area = target.getArea(); double skew = target.getSkew(); - Transform2d pose = target.getCameraToTarget(); - List corners = target.getCorners(); + Transform3d pose = target.getBestCameraToTarget(); + List corners = target.getDetectedCorners(); .. code-block:: c++ @@ -129,8 +128,8 @@ Getting Data From A Target double pitch = target.GetPitch(); double area = target.GetArea(); double skew = target.GetSkew(); - frc::Transform2d pose = target.GetCameraToTarget(); - wpi::SmallVector, 4> corners = target.GetCorners(); + frc::Transform3d pose = target.GetBestCameraToTarget(); + wpi::SmallVector, 4> corners = target.GetDetectedCorners(); Getting AprilTag Data From A Target -----------------------------------