frc78 / FRC78_2024

Software repository for FRC Team 78's robot code for the 2024 FRC game Crescendo
Other
5 stars 1 forks source link

Add support for multiple photon vision cams #174

Closed ArchdukeTim closed 5 months ago

ArchdukeTim commented 5 months ago

Took Nehuels changes from MultiAprilCam branch

PoseEstimator now takes in a list of PhotonPoseEstimators that are created in RobotContainer, iterates over them and applies the same estimation updates as before.

This also moves the poseEstimator.update() call from robotPeriodic to a new Notifier thread. This should help avoid loop overruns