Package frc.robot.subsystems.vision
Class Vision
java.lang.Object
frc.robot.subsystems.vision.Vision
Class that handles vision logic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetTagFilterAlliance(DriverStation.Alliance alliance) Sets the AprilTag ID filter to the appropriate set for the given alliance.voidUpdate the pose estimation inside ofswerveDrivewith data from Limelight.
-
Constructor Details
-
Vision
Creates a new Vision.- Parameters:
swerveDrive-SwerveDriveto update.
-
-
Method Details
-
setTagFilterAlliance
Sets the AprilTag ID filter to the appropriate set for the given alliance.- Parameters:
alliance- The alliance to set it for.
-
updatePoseEstimation
public void updatePoseEstimation()Update the pose estimation inside ofswerveDrivewith data from Limelight.
-