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.voidPrints all raw apriltag data to console.voidupdate(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:
printRawDatain classRaspberryPi
-
getAprilTags
Returns a list of all april tags from reef and station camera.- Overrides:
getAprilTagsin classRaspberryPi- Returns:
- all april tags
-
getReefAprilTags
Returns a list of all april tags from reef CV camera.- Overrides:
getReefAprilTagsin classRaspberryPi- Returns:
- all visible reef april tags.
-
getStationAprilTags
Returns all april tags visible from Station CV Camera.- Overrides:
getStationAprilTagsin 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:
updatein classRaspberryPi- Parameters:
robotPoseMeters- current pose
-