Package org.hivevisionftc.vision
Class LimelightSource
java.lang.Object
org.hivevisionftc.vision.LimelightSource
- All Implemented Interfaces:
DetectionSource
DetectionSource backed by a Limelight 3A running a neural detector pipeline.-
Constructor Summary
ConstructorsConstructorDescriptionLimelightSource(com.qualcomm.hardware.limelightvision.Limelight3A limelight, VisionConfig config) Selects the configured pipeline, sets the polling rate and starts the camera. -
Method Summary
Modifier and TypeMethodDescriptionfetchLatestDetections(Pose robotPose) Returns the latest detections, located in field coordinates from the given robot pose.longAge, in milliseconds, of the data behind the lastDetectionSource.fetchLatestDetections(org.hivevisionftc.vision.Pose)call.
-
Constructor Details
-
LimelightSource
public LimelightSource(com.qualcomm.hardware.limelightvision.Limelight3A limelight, VisionConfig config) Selects the configured pipeline, sets the polling rate and starts the camera.
-
-
Method Details
-
fetchLatestDetections
Description copied from interface:DetectionSourceReturns the latest detections, located in field coordinates from the given robot pose. Detections that cannot be located on the field are left out.- Specified by:
fetchLatestDetectionsin interfaceDetectionSource
-
stalenessMs
public long stalenessMs()Description copied from interface:DetectionSourceAge, in milliseconds, of the data behind the lastDetectionSource.fetchLatestDetections(org.hivevisionftc.vision.Pose)call.- Specified by:
stalenessMsin interfaceDetectionSource
-