Limelight

class Limelight(val name: String, cameraHeight: Double, var cameraAngle: Double = 0.0, ip: String, cameraDistance: Double = 0.0, aprilTagHeight: Double = 0.0, ledMode: LedMode = LedMode.Pipeline, cameraMode: CameraMode = CameraMode.VisionProcessor, pipeline: Int = 0, streamMode: StreamMode = StreamMode.Standard, snapshotMode: SnapshotMode = SnapshotMode.Reset, crop: Array<Number> = arrayOf(0, 0, 0, 0), val fiducialPipeline: Int = 0)

A wrapper class for the Limelight camera.

Parameters

name

The name of the Limelight.

cameraHeight

The height of the camera above the ground.

cameraAngle

The angle of the camera above the ground.

cameraDistance

The distance of the camera from the center of the robot.

aprilTagHeight

The height of the AprilTag above the ground.

ledMode

The LED mode of the Limelight.

cameraMode

The camera mode of the Limelight.

pipeline

The pipeline of the Limelight.

streamMode

The stream mode of the Limelight.

snapshotMode

The snapshot mode of the Limelight.

crop

The crop values of the Limelight.

ip

The IP address of the Limelight.

fiducialPipeline

The pipeline of the Limelight that is used for the Fiducial.

Constructors

Link copied to clipboard
constructor(name: String, cameraHeight: Double, cameraAngle: Double = 0.0, ip: String, cameraDistance: Double = 0.0, aprilTagHeight: Double = 0.0, ledMode: LedMode = LedMode.Pipeline, cameraMode: CameraMode = CameraMode.VisionProcessor, pipeline: Int = 0, streamMode: StreamMode = StreamMode.Standard, snapshotMode: SnapshotMode = SnapshotMode.Reset, crop: Array<Number> = arrayOf(0, 0, 0, 0), fiducialPipeline: Int = 0)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Get the position of the limelight's current target WITHOUT using limelight 3d positioning. Instead, this is done based on the limelight vertical and horizontal offsets.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun putToTab(name: String, data: Optional<Double>)
Link copied to clipboard
fun setLED(mode: LedMode)

Properties

Link copied to clipboard
Link copied to clipboard
val feed: HttpCamera
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard