Package frc.robot
Class RaspberryPiPhoton
java.lang.Object
frc.robot.RaspberryPi
frc.robot.RaspberryPiPhoton
IO implementation for real robot using PhotonVision.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RaspberryPiPhoton connecting to real cameras. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all april tags from reef and station camera.Returns a list of all april tags from reef CV camera.Returns all april tags visible from Station CV Camera.void
Prints all raw apriltag data to console.void
update
(edu.wpi.first.math.geometry.Pose2d robotPoseMeters) Updates raspberry pi's state based on current robot pose.Methods inherited from class frc.robot.RaspberryPi
canSeeTags, getAprilTagsSingleCam, getAprilTagWithID, getClosestTag
-
Constructor Details
-
RaspberryPiPhoton
public RaspberryPiPhoton()Creates a new RaspberryPiPhoton connecting to real cameras.
-
-
Method Details
-
printRawData
public void printRawData()Prints all raw apriltag data to console.- Overrides:
printRawData
in classRaspberryPi
-
getAprilTags
Returns a list of all april tags from reef and station camera.- Overrides:
getAprilTags
in classRaspberryPi
- Returns:
- all april tags
-
getReefAprilTags
Returns a list of all april tags from reef CV camera.- Overrides:
getReefAprilTags
in classRaspberryPi
- Returns:
- all visible reef april tags.
-
getStationAprilTags
Returns all april tags visible from Station CV Camera.- Overrides:
getStationAprilTags
in classRaspberryPi
- Returns:
- list of all april tags
-
update
public void update(edu.wpi.first.math.geometry.Pose2d robotPoseMeters) Updates raspberry pi's state based on current robot pose. Not used for teleop functionality.- Overrides:
update
in classRaspberryPi
- Parameters:
robotPoseMeters
- current pose
-