Package frc.lib5k.components.limelight
Class Limelight
- java.lang.Object
-
- frc.lib5k.components.limelight.Limelight
-
public class Limelight extends java.lang.ObjectLimelight interface tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLimelight.CameraModeCamera modestatic classLimelight.LEDModeLED mode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenablePortforwarding(java.lang.String hostname)voidenableSnapshots(boolean enabled)Allows users to take snapshots during a matchdoublegetLatency()The pipeline's latency contributiondoublegetPipelineID()True active pipeline index of the cameraLimelightTargetgetTarget()returns a snap shot of limelight target databooleanisTargetVisible()Whether the limelight has any valid targetsvoidsetCameraMode(Limelight.CameraMode mode)Sets limelight's operation modevoidsetLEDMode(Limelight.LEDMode mode)Sets limelight's LED statevoidsetPipelineID(int id)Sets limelight's current pipelinevoidsetStreamMode(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
-
-