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 TypeMethodDescriptionvoid
setTagFilterAlliance
(DriverStation.Alliance alliance) Sets the AprilTag ID filter to the appropriate set for the given alliance.void
Update the pose estimation inside ofswerveDrive
with data from Limelight.
-
Constructor Details
-
Vision
Creates a new Vision.- Parameters:
swerveDrive
-SwerveDrive
to 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 ofswerveDrive
with data from Limelight.
-