Package org.hivevisionftc.vision
Class FieldProjector
java.lang.Object
org.hivevisionftc.vision.FieldProjector
Turns the camera angles of a detection into a position on the field.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Poseproject(Pose robotPose, VisionConfig config, double txDeg, double tyDeg) Projects a camera ray onto the plane at the target's height.
-
Method Details
-
project
Projects a camera ray onto the plane at the target's height.- Parameters:
robotPose- robot pose on the field (inches, radians)config- camera mounting geometrytxDeg- horizontal angle from the crosshair, in degrees (positive is right)tyDeg- vertical angle from the crosshair, in degrees (positive is up)- Returns:
- the field position, or
nullif the ray never reaches the target's height (it points level or upward relative to the target)
-