Closed maxikyuu closed 2 months ago
Just made it so the single and multi-tag standard deviations are different for each camera and integrated the requested changes by nstrike!
Deleted vision constants from Constants.java for clarity. I forgot to delete in the previous commit oops
Implemented the method from PhotonVision's code example that returns the stdDevs for a given camera, to be used with the SwerveDrivePoseEstimator instead of only filtering the poses. This function changes the standard deviations based on the distance and number of tags seen. (e.g. trust the pose values more if the robot sees multiple tags, don't trust the pose values if the robot is far away and only sees 1 tag). However, I had to change some other methods to integrate this. Let me know if I broke anything!