Photon Vision
The PhotonVision class is a subsystem that interfaces with multiple PhotonVision cameras to provide vision tracking and pose estimation capabilities. This subsystem is a Singleton that manages multiple CameraModules and selects the best result based on pose ambiguity.
This subsystem provides methods to get the estimated global pose of the robot, the distance to targets, and the yaw of detected AprilTags. It also provides methods to check if a tag is visible and get the pivot position based on distance calculations.