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 -----------------------------------