Class LimelightBallDetectionsJSON

java.lang.Object
frc.robot.systems.LimelightBallDetectionsJSON

public class LimelightBallDetectionsJSON extends Object
  • 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.