Package org.hivevisionftc.vision
Class VisionConfig
java.lang.Object
org.hivevisionftc.vision.VisionConfig
Camera mounting geometry and detection thresholds. Every setter returns
this, so calls can be chained.
Distances are inches and angles are degrees. The robot frame has +X forward and +Y to the left. See the calibration guide for how to measure each value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncameraForwardIn(double cameraForwardIn) How far the camera lens sits ahead of the robot center.cameraHeightIn(double cameraHeightIn) Height of the camera lens above the floor.cameraLeftIn(double cameraLeftIn) How far the camera lens sits to the left of the robot center.cameraPitchDeg(double cameraPitchDeg) Pitch of the camera above the horizontal, in degrees.doubledoubledoubledoubleintintlongdoubledoublelimelightPipeline(int limelightPipeline) Limelight pipeline index to run.limelightPollingRateHz(int limelightPollingRateHz) How often, from 1 to 250 Hz, the control hub asks the Limelight for new data.maxStalenessMs(long maxStalenessMs) Detections older than this are discarded.minConfidence(double minConfidence) Detections below this confidence (0 to 1) are discarded.targetHeightIn(double targetHeightIn) Height of the center of the game element above the floor.
-
Constructor Details
-
VisionConfig
public VisionConfig()
-
-
Method Details
-
cameraPitchDeg
Pitch of the camera above the horizontal, in degrees. Negative if the camera looks down. -
cameraHeightIn
Height of the camera lens above the floor. -
cameraForwardIn
How far the camera lens sits ahead of the robot center. Negative if it is behind. -
cameraLeftIn
How far the camera lens sits to the left of the robot center. Negative if it is to the right. -
targetHeightIn
Height of the center of the game element above the floor. The camera must be above this. -
maxStalenessMs
Detections older than this are discarded. -
minConfidence
Detections below this confidence (0 to 1) are discarded.The Limelight also applies its own threshold in the web UI. If that one is higher, the camera never reports the detection and this value cannot bring it back.
-
limelightPipeline
Limelight pipeline index to run. -
limelightPollingRateHz
How often, from 1 to 250 Hz, the control hub asks the Limelight for new data. -
getCameraPitchDeg
public double getCameraPitchDeg() -
getCameraHeightIn
public double getCameraHeightIn() -
getCameraForwardIn
public double getCameraForwardIn() -
getCameraLeftIn
public double getCameraLeftIn() -
getTargetHeightIn
public double getTargetHeightIn() -
getMaxStalenessMs
public long getMaxStalenessMs() -
getMinConfidence
public double getMinConfidence() -
getLimelightPipeline
public int getLimelightPipeline() -
getLimelightPollingRateHz
public int getLimelightPollingRateHz()
-