getTV
Returns whether the camera currently sees a valid target.
Name of the Limelight NetworkTables table. Pass an empty string
"" to use the default "limelight" table.true if a valid target is present, false otherwise.getTX
Returns the horizontal offset from the configured crosshair to the primary target, in degrees.
Name of the Limelight NetworkTables table.
Horizontal offset angle in degrees. Negative values are to the left of the crosshair.
getTY
Returns the vertical offset from the configured crosshair to the primary target, in degrees.
Name of the Limelight NetworkTables table.
Vertical offset angle in degrees. Negative values are below the crosshair.
getTXNC
Returns the horizontal offset from the principal pixel to the primary target, in degrees. This is the most accurate 2D angular metric when using a calibrated camera and you do not need adjustable crosshair functionality.
Name of the Limelight NetworkTables table.
Horizontal offset in degrees from the principal pixel, with no crosshair adjustment applied.
getTYNC
Returns the vertical offset from the principal pixel to the primary target, in degrees. Prefer this over getTY for calibrated cameras that do not require a moveable crosshair.
Name of the Limelight NetworkTables table.
Vertical offset in degrees from the principal pixel, with no crosshair adjustment applied.
getTA
Returns the target area as a percentage of the full image (0–100).
Name of the Limelight NetworkTables table.
Target area as a percentage of the image, from 0 (no target) to 100 (full frame).
getT2DArray
Returns an array of 17 targeting metrics in a single NetworkTables read.
Name of the Limelight NetworkTables table.
A 17-element array:
[targetValid, targetCount, targetLatency, captureLatency, tx, ty, txnc, tync, ta, tid, targetClassIndexDetector, targetClassIndexClassifier, targetLongSidePixels, targetShortSidePixels, targetHorizontalExtentPixels, targetVerticalExtentPixels, targetSkewDegrees].getTargetCount
Returns the number of targets currently detected. Reads index 1 of the T2D array.
Name of the Limelight NetworkTables table.
Number of detected targets. Returns
0 if the T2D array is not the expected length.getClassifierClass
Returns the class name string from the currently running neural classifier pipeline.
Name of the Limelight NetworkTables table.
The class name of the current classifier result (e.g.
"cube", "cone").getClassifierClassIndex
Returns the numeric class index from the currently running neural classifier pipeline. Reads index 11 of the T2D array.
Name of the Limelight NetworkTables table.
Class index from the classifier pipeline. Returns
0 if the T2D array is not the expected length.getDetectorClass
Returns the class name string of the primary result from the currently running neural detector pipeline.
Name of the Limelight NetworkTables table.
The class name of the primary detector result.
getDetectorClassIndex
Returns the numeric class index of the primary result from the currently running neural detector pipeline. Reads index 10 of the T2D array.
Name of the Limelight NetworkTables table.
Class index from the detector pipeline. Returns
0 if the T2D array is not the expected length.getLatency_Pipeline
Returns the pipeline processing latency contribution in milliseconds.
Name of the Limelight NetworkTables table.
Pipeline processing latency in milliseconds.
getLatency_Capture
Returns the image capture latency in milliseconds.
Name of the Limelight NetworkTables table.
Capture latency in milliseconds.
getCurrentPipelineIndex
Returns the index of the currently active pipeline (0–9).
Name of the Limelight NetworkTables table.
Active pipeline index, between 0 and 9 inclusive.
getCurrentPipelineType
Returns a string describing the active pipeline type.
Name of the Limelight NetworkTables table.
Pipeline type identifier string (e.g.
"retro", "apriltag").getJSONDump
Returns the full JSON results string published by the Limelight each frame.
Name of the Limelight NetworkTables table.
Raw JSON string containing all current pipeline results.
getLatestResults
Parses the JSON results dump and returns a LimelightResults object. Includes parse timing if profileJSON is enabled.
Name of the Limelight NetworkTables table.
Parsed results object. Check
results.error for a non-null value before using results.getFiducialID
Returns the ID of the primary tracked fiducial/AprilTag.
Name of the Limelight NetworkTables table.
Fiducial ID of the primary tracked AprilTag, or
0 if none.getNeuralClassID
Returns the neural classifier class ID string for the primary result.
Name of the Limelight NetworkTables table.
Neural classifier class ID string.
getHeartbeat
Returns a counter that increments once per frame. Use this to verify the camera is connected and actively publishing.
Name of the Limelight NetworkTables table.
Heartbeat counter. Rolls over at some large value. If it stops changing, the camera may be disconnected.
getTargetColor
Returns the average color observed under the crosshair region as a BGR array.
Name of the Limelight NetworkTables table.
Three-element array in BGR order:
[Blue, Green, Red].getRawBarcodeData
Returns decoded data strings from all barcodes detected in the current frame.
Name of the Limelight NetworkTables table.
Array of decoded barcode content strings. Empty array if no barcodes are detected.
getCornerCoordinates
Returns the corner coordinates of the primary detected target as a flat array of alternating x/y values. Requires Send Contours to be enabled in the Limelight Output tab.
Name of the Limelight NetworkTables table.
Flat array of corner coordinates in
[x0, y0, x1, y1, ...] order. Empty if no target or Send Contours is disabled.getRawFiducials
Returns low-latency raw AprilTag detection results directly from NetworkTables, bypassing JSON parsing.
Name of the Limelight NetworkTables table.
Array of
RawFiducial objects. Each contains: id, txnc, tync, ta, distToCamera, distToRobot, ambiguity. Returns an empty array if data is malformed.getRawDetections
Returns low-latency raw neural detector results directly from NetworkTables, bypassing JSON parsing.
Name of the Limelight NetworkTables table.
Array of
RawDetection objects. Each contains: classId, txnc, tync, ta, and four corner points (corner0_X/Y through corner3_X/Y). Returns an empty array if data is malformed.getRawTargets
Returns low-latency raw target contour results directly from NetworkTables. Returns ungrouped contours in normalized screen space (−1 to 1).
Name of the Limelight NetworkTables table.
Array of
RawTarget objects (up to 3). Each contains: txnc, tync, ta. Returns an empty array if data is malformed.