Package com.thegongoliers.input.vision
Class LimelightCamera
- java.lang.Object
-
- com.thegongoliers.input.vision.LimelightCamera
-
- All Implemented Interfaces:
TargetingCamera
public class LimelightCamera extends java.lang.Object implements TargetingCamera
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLimelightCamera.LEDMode
-
Constructor Summary
Constructors Constructor Description LimelightCamera()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetHorizontalOffset()Gets the horizontal offset from the center of the camera to the target (in degrees)doublegetTargetArea()Gets the target area as a percent of the image (from 0 to 100)doublegetVerticalOffset()Gets the vertical offset from the center of the camera to the target (in degrees)booleanhasTarget()Determines if the camera can see a targetvoidsetLEDMode(LimelightCamera.LEDMode mode)voidswitchToDriverMode()voidswitchToTargetingMode()
-
-
-
Method Detail
-
hasTarget
public boolean hasTarget()
Description copied from interface:TargetingCameraDetermines if the camera can see a target- Specified by:
hasTargetin interfaceTargetingCamera
-
getHorizontalOffset
public double getHorizontalOffset()
Description copied from interface:TargetingCameraGets the horizontal offset from the center of the camera to the target (in degrees)- Specified by:
getHorizontalOffsetin interfaceTargetingCamera
-
getVerticalOffset
public double getVerticalOffset()
Description copied from interface:TargetingCameraGets the vertical offset from the center of the camera to the target (in degrees)- Specified by:
getVerticalOffsetin interfaceTargetingCamera
-
getTargetArea
public double getTargetArea()
Description copied from interface:TargetingCameraGets the target area as a percent of the image (from 0 to 100)- Specified by:
getTargetAreain interfaceTargetingCamera
-
setLEDMode
public void setLEDMode(LimelightCamera.LEDMode mode)
-
switchToDriverMode
public void switchToDriverMode()
-
switchToTargetingMode
public void switchToTargetingMode()
-
-