Class CANdleWpiAdapter
java.lang.Object
xbot.common.controls.actuators.XCANLightController
xbot.common.controls.actuators.wpi_adapters.CANdleWpiAdapter
WPI adapter for the CANdle light controller from CTRE.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class xbot.common.controls.actuators.XCANLightController
XCANLightController.AnimationType, XCANLightController.XCANLightControllerFactory -
Field Summary
FieldsFields inherited from class xbot.common.controls.actuators.XCANLightController
busId, config, deviceId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAnimation(int slot) voidvoidvoidlarson(int slot, Frequency frameRate, Color color, LarsonBounceValue bounceValue) voidrainbow(int slot, Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) voidvoidsingleFade(int slot, Frequency frameRate, Color color) voidvoidvoidtwinkleOff(int slot, Frequency frameRate, double density, Color color) Methods inherited from class xbot.common.controls.actuators.XCANLightController
getSlotEndIndex, getSlotStartIndex
-
Field Details
-
SLOT_COUNT
public static final int SLOT_COUNT- See Also:
-
candle
-
-
Constructor Details
-
CANdleWpiAdapter
@AssistedInject public CANdleWpiAdapter(@Assisted("info") CANLightControllerInfo deviceInfo, DevicePolice police)
-
-
Method Details
-
getHealth
- Specified by:
getHealthin classXCANLightController
-
clearAnimation
public void clearAnimation(int slot) - Specified by:
clearAnimationin classXCANLightController
-
colorFlow
- Specified by:
colorFlowin classXCANLightController
-
fire
- Specified by:
firein classXCANLightController
-
larson
- Specified by:
larsonin classXCANLightController
-
rainbow
public void rainbow(int slot, Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) - Specified by:
rainbowin classXCANLightController
-
rgbFade
- Specified by:
rgbFadein classXCANLightController
-
singleFade
- Specified by:
singleFadein classXCANLightController
-
strobe
- Specified by:
strobein classXCANLightController
-
twinkleOff
- Specified by:
twinkleOffin classXCANLightController
-
twinkle
- Specified by:
twinklein classXCANLightController
-