Pipeline control
setPipelineIndex
Switches the active pipeline to the specified index (0–9).
Name of the Limelight NetworkTables table.
Pipeline index to activate. Valid range: 0–9.
setPriorityTagID
Sets the priority AprilTag ID. When a priority ID is set, the Limelight will prefer that tag when multiple are visible.
Name of the Limelight NetworkTables table.
The AprilTag ID to prioritize.
SetFiducialIDFiltersOverride
Overrides the set of AprilTag IDs used for robot localization. Tags whose IDs are not in this list will be ignored for pose estimation.
Name of the Limelight NetworkTables table.
Array of AprilTag IDs to permit for localization.
SetFiducialDownscalingOverride
Overrides the downscaling factor applied to the image before AprilTag detection. Higher downscale improves detection speed but may reduce maximum detection range.
Name of the Limelight NetworkTables table.
Downscale factor. Valid values:
0 (use pipeline setting), 1.0, 1.5, 2.0, 3.0, 4.0.SetThrottle
Sets the frame-processing throttle. The camera processes one frame after skipping the specified number. Set to a value between 100–200 while the robot is disabled to reduce thermal output.
Name of the Limelight NetworkTables table.
Number of frames to skip between processed frames.
0 = no throttle (process every frame).LED control
setLEDMode_PipelineControl
Sets LED behavior to be controlled by the active pipeline configuration (ledMode = 0).
Name of the Limelight NetworkTables table.
setLEDMode_ForceOff
Forces the LEDs off regardless of the pipeline setting (ledMode = 1).
Name of the Limelight NetworkTables table.
setLEDMode_ForceBlink
Forces the LEDs to blink continuously (ledMode = 2).
Name of the Limelight NetworkTables table.
setLEDMode_ForceOn
Forces the LEDs fully on regardless of the pipeline setting (ledMode = 3).
Name of the Limelight NetworkTables table.
Stream mode
setStreamMode_Standard
Enables the standard side-by-side stream (stream = 0). The primary and secondary camera views appear side by side.
Name of the Limelight NetworkTables table.
setStreamMode_PiPMain
Enables Picture-in-Picture mode with the secondary stream displayed in the corner of the primary stream (stream = 1).
Name of the Limelight NetworkTables table.
setStreamMode_PiPSecondary
Enables Picture-in-Picture mode with the primary stream displayed in the corner of the secondary stream (stream = 2).
Name of the Limelight NetworkTables table.
Camera geometry
setCameraPose_RobotSpace
Sets the camera’s mount position and orientation relative to the robot’s center. All translations are in meters; all angles are in degrees.
Name of the Limelight NetworkTables table.
Forward offset from the robot center in meters.
Side (lateral) offset from the robot center in meters. Positive is to the left.
Vertical offset from the robot center in meters.
Camera roll in degrees.
Camera pitch in degrees. Negative values tilt the camera downward.
Camera yaw in degrees relative to the robot’s forward direction.
setCropWindow
Sets the active crop window for the camera image. The crop window in the Limelight UI must be fully open (no UI crop applied) for this to take effect.
Values are normalized: −1.0 is the left/bottom edge, 1.0 is the right/top edge.
Name of the Limelight NetworkTables table.
Left edge of the crop window. Range: −1.0 to 1.0.
Right edge of the crop window. Range: −1.0 to 1.0.
Bottom edge of the crop window. Range: −1.0 to 1.0.
Top edge of the crop window. Range: −1.0 to 1.0.
setKeystone
Applies horizontal and vertical keystone correction to the camera image.
Name of the Limelight NetworkTables table.
Horizontal keystone correction value. Range: −0.95 to 0.95.
Vertical keystone correction value. Range: −0.95 to 0.95.
setFiducial3DOffset
Sets a 3D offset point applied to the fiducial targeting solution, enabling easy targeting of a specific point relative to an AprilTag.
Name of the Limelight NetworkTables table.
X offset in meters relative to the fiducial.
Y offset in meters relative to the fiducial.
Z offset in meters relative to the fiducial.
MegaTag2 orientation
SetRobotOrientation
Sends the robot’s current orientation to the Limelight for use by the MegaTag2 localization algorithm. Only yaw is used by MegaTag2; set all rate and attitude parameters to 0. Internally calls Flush() to ensure the value reaches the camera before the next pose read.
Name of the Limelight NetworkTables table.
Robot yaw in degrees. 0° = robot facing the Red Alliance wall in the standard FRC field orientation.
Angular velocity of yaw in degrees per second. Set to
0 — not currently used by MegaTag2.Robot pitch in degrees. Set to
0 — not currently used by MegaTag2.Angular velocity of pitch in degrees per second. Set to
0.Robot roll in degrees. Set to
0 — not currently used by MegaTag2.Angular velocity of roll in degrees per second. Set to
0.SetRobotOrientation_NoFlush
Identical to SetRobotOrientation but skips the internal Flush() call. Use this when you are batching multiple NT writes and want to flush manually, or when calling from a high-frequency loop where the extra flush overhead is undesirable.
Name of the Limelight NetworkTables table.
Robot yaw in degrees.
Angular velocity of yaw. Set to
0.Robot pitch. Set to
0.Angular velocity of pitch. Set to
0.Robot roll. Set to
0.Angular velocity of roll. Set to
0.SetIMUMode
Configures the IMU mode used by the MegaTag2 localization algorithm.
Name of the Limelight NetworkTables table.
IMU mode integer. Mode
0 = external IMU only (use SetRobotOrientation to provide heading). Higher modes enable Limelight’s internal IMU. See the MegaTag2 guide for usage guidance.SetIMUAssistAlpha
Sets the complementary filter alpha for IMU Assist Modes 3 and 4. A higher alpha causes the internal IMU to converge onto the assist source more rapidly.
Name of the Limelight NetworkTables table.
Complementary filter alpha. Default is
0.001. Higher values increase convergence speed.Python scripting
setPythonScriptData
Sends an array of doubles to the currently running Python script on the Limelight.
Name of the Limelight NetworkTables table.
Array of doubles to pass to the Python script via the
llrobot NetworkTables key.getPythonScriptData
Returns the output array published by the currently running Python script on the Limelight.
Name of the Limelight NetworkTables table.
Array of doubles published by the Python script via the
llpython NetworkTables key.