Package xbot.common.controls.actuators
Class XCANLightController
java.lang.Object
xbot.common.controls.actuators.XCANLightController
- Direct Known Subclasses:
CANdleWpiAdapter,MockCANLightController
Abstract base class for CAN-based light controllers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of animations supported by the light controller.static interfaceFactory interface for creating instances of XCANLightController. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CANBusIdprotected final CANLightControllerOutputConfigprotected final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXCANLightController(CANLightControllerInfo info, DevicePolice police) Constructor for XCANLightController. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclearAnimation(int slot) abstract voidabstract voidabstract DeviceHealthprotected intgetSlotEndIndex(int slot) protected intgetSlotStartIndex(int slot) abstract voidlarson(int slot, Frequency frameRate, Color color, LarsonBounceValue bounceValue) abstract voidrainbow(int slot, Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) abstract voidabstract voidsingleFade(int slot, Frequency frameRate, Color color) abstract voidabstract voidabstract voidtwinkleOff(int slot, Frequency frameRate, double density, Color color)
-
Field Details
-
busId
-
deviceId
protected final int deviceId -
config
-
-
Constructor Details
-
XCANLightController
Constructor for XCANLightController.- Parameters:
info- The CAN light controller information.police- The device police for registering the device.
-
-
Method Details
-
getHealth
-
getSlotStartIndex
protected int getSlotStartIndex(int slot) -
getSlotEndIndex
protected int getSlotEndIndex(int slot) -
clearAnimation
public abstract void clearAnimation(int slot) -
colorFlow
-
fire
public abstract void fire(int slot, Frequency frameRate, double brightness, double cooling, double sparking) -
larson
public abstract void larson(int slot, Frequency frameRate, Color color, LarsonBounceValue bounceValue) -
rainbow
public abstract void rainbow(int slot, Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) -
rgbFade
-
singleFade
-
strobe
-
twinkleOff
-
twinkle
-