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.
camera Height
The height of the camera above the ground.
camera Angle
The angle of the camera above the ground.
camera Distance
The distance of the camera from the center of the robot.
april Tag Height
The height of the AprilTag above the ground.
led Mode
The LED mode of the Limelight.
camera Mode
The camera mode of the Limelight.
pipeline
The pipeline of the Limelight.
stream Mode
The stream mode of the Limelight.
snapshot Mode
The snapshot mode of the Limelight.
crop
The crop values of the Limelight.
ip
The IP address of the Limelight.
fiducial Pipeline
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
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