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 class
LimelightCamera.LEDMode
-
Constructor Summary
Constructors Constructor Description LimelightCamera()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHorizontalOffset()
Gets the horizontal offset from the center of the camera to the target (in degrees)double
getTargetArea()
Gets the target area as a percent of the image (from 0 to 100)double
getVerticalOffset()
Gets the vertical offset from the center of the camera to the target (in degrees)boolean
hasTarget()
Determines if the camera can see a targetvoid
setLEDMode(LimelightCamera.LEDMode mode)
void
switchToDriverMode()
void
switchToTargetingMode()
-
-
-
Method Detail
-
hasTarget
public boolean hasTarget()
Description copied from interface:TargetingCamera
Determines if the camera can see a target- Specified by:
hasTarget
in interfaceTargetingCamera
-
getHorizontalOffset
public double getHorizontalOffset()
Description copied from interface:TargetingCamera
Gets the horizontal offset from the center of the camera to the target (in degrees)- Specified by:
getHorizontalOffset
in interfaceTargetingCamera
-
getVerticalOffset
public double getVerticalOffset()
Description copied from interface:TargetingCamera
Gets the vertical offset from the center of the camera to the target (in degrees)- Specified by:
getVerticalOffset
in interfaceTargetingCamera
-
getTargetArea
public double getTargetArea()
Description copied from interface:TargetingCamera
Gets the target area as a percent of the image (from 0 to 100)- Specified by:
getTargetArea
in interfaceTargetingCamera
-
setLEDMode
public void setLEDMode(LimelightCamera.LEDMode mode)
-
switchToDriverMode
public void switchToDriverMode()
-
switchToTargetingMode
public void switchToTargetingMode()
-
-