Package frc.lib5k.components
Class USBVisionCamera
- java.lang.Object
-
- frc.lib5k.components.AutoCamera
-
- frc.lib5k.components.USBVisionCamera
-
public class USBVisionCamera extends AutoCamera
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUSBVisionCamera.LEDMode
-
Constructor Summary
Constructors Constructor Description USBVisionCamera(java.lang.String name, int usb_slot, int pcm_port)USBVisionCamera(java.lang.String name, int usb_slot, int pcm_id, int pcm_port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetLED(boolean enabled)Enable or disable the LEDRing around the cameravoidsetLED(USBVisionCamera.LEDMode mode)Set the LEDRing mode-
Methods inherited from class frc.lib5k.components.AutoCamera
getFeed, keepCameraAwake, loadJsonConfig, setResolution, showCamera
-
-
-
-
Method Detail
-
setLED
public void setLED(boolean enabled)
Enable or disable the LEDRing around the camera- Parameters:
enabled- Should the LEDRing be enabled?
-
setLED
public void setLED(USBVisionCamera.LEDMode mode)
Set the LEDRing mode- Parameters:
mode- LEDRing mode
-
-