Package frc.lib5k.components.limelight
Class Limelight
- java.lang.Object
-
- frc.lib5k.components.limelight.Limelight
-
public class Limelight extends java.lang.Object
Limelight interface tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Limelight.CameraMode
Camera modestatic class
Limelight.LEDMode
LED mode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enablePortforwarding(java.lang.String hostname)
void
enableSnapshots(boolean enabled)
Allows users to take snapshots during a matchdouble
getLatency()
The pipeline's latency contributiondouble
getPipelineID()
True active pipeline index of the cameraLimelightTarget
getTarget()
returns a snap shot of limelight target databoolean
isTargetVisible()
Whether the limelight has any valid targetsvoid
setCameraMode(Limelight.CameraMode mode)
Sets limelight's operation modevoid
setLEDMode(Limelight.LEDMode mode)
Sets limelight's LED statevoid
setPipelineID(int id)
Sets limelight's current pipelinevoid
setStreamMode(int mode)
Sets limelight's streaming mode
-
-
-
Method Detail
-
enablePortforwarding
public void enablePortforwarding(java.lang.String hostname)
-
isTargetVisible
public boolean isTargetVisible()
Whether the limelight has any valid targets- Returns:
- true or false
-
getPipelineID
public double getPipelineID()
True active pipeline index of the camera- Returns:
- 0-9
-
getTarget
public LimelightTarget getTarget()
returns a snap shot of limelight target data- Returns:
- limelightTarget
-
getLatency
public double getLatency()
The pipeline's latency contribution- Returns:
- ms
-
setLEDMode
public void setLEDMode(Limelight.LEDMode mode)
Sets limelight's LED state
-
setCameraMode
public void setCameraMode(Limelight.CameraMode mode)
Sets limelight's operation mode
-
setPipelineID
public void setPipelineID(int id)
Sets limelight's current pipeline
-
setStreamMode
public void setStreamMode(int mode)
Sets limelight's streaming mode
-
enableSnapshots
public void enableSnapshots(boolean enabled)
Allows users to take snapshots during a match
-
-