Package frc.robot.systems
Class LimelightBallDetectionsJSON
java.lang.Object
frc.robot.systems.LimelightBallDetectionsJSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlimelight.networktables.target.pipeline.NeuralDetectorCalculates which fuel is the most optimal to pick up.limelight.networktables.target.pipeline.NeuralDetector[]Returns all detected targets sorted by proximity to center.voidupdate()Updates variables.
-
Constructor Details
-
LimelightBallDetectionsJSON
public LimelightBallDetectionsJSON()Constructor for LimelightBallDetectionJSON.
-
-
Method Details
-
getOptimalFuel
public limelight.networktables.target.pipeline.NeuralDetector getOptimalFuel()Calculates which fuel is the most optimal to pick up.- Returns:
- the NeuralDetector array of the best fuel. Will return null if no targets.
-
getSortedDetections
public limelight.networktables.target.pipeline.NeuralDetector[] getSortedDetections()Returns all detected targets sorted by proximity to center.- Returns:
- sorted detector array, possibly empty.
-
update
public void update()Updates variables. To be put in teleopPeriodic.
-