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 XCANLightController
XCANLightController.AnimationType, XCANLightController.XCANLightControllerFactory -
Field Summary
FieldsFields inherited from class XCANLightController
busId, config, deviceId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAnimation(int slot) voidcolorFlow(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) voidfire(int slot, org.wpilib.units.measure.Frequency frameRate, double brightness, double cooling, double sparking) voidlarson(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color, LarsonBounceValue bounceValue) voidrainbow(int slot, org.wpilib.units.measure.Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) voidrgbFade(int slot, org.wpilib.units.measure.Frequency frameRate, double brightness) voidsingleFade(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) voidstrobe(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) voidtwinkle(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) voidtwinkleOff(int slot, org.wpilib.units.measure.Frequency frameRate, double density, org.wpilib.util.Color color) Methods inherited from class 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
public void colorFlow(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) - Specified by:
colorFlowin classXCANLightController
-
fire
public void fire(int slot, org.wpilib.units.measure.Frequency frameRate, double brightness, double cooling, double sparking) - Specified by:
firein classXCANLightController
-
larson
public void larson(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color, LarsonBounceValue bounceValue) - Specified by:
larsonin classXCANLightController
-
rainbow
public void rainbow(int slot, org.wpilib.units.measure.Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) - Specified by:
rainbowin classXCANLightController
-
rgbFade
public void rgbFade(int slot, org.wpilib.units.measure.Frequency frameRate, double brightness) - Specified by:
rgbFadein classXCANLightController
-
singleFade
public void singleFade(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) - Specified by:
singleFadein classXCANLightController
-
strobe
public void strobe(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) - Specified by:
strobein classXCANLightController
-
twinkleOff
public void twinkleOff(int slot, org.wpilib.units.measure.Frequency frameRate, double density, org.wpilib.util.Color color) - Specified by:
twinkleOffin classXCANLightController
-
twinkle
public void twinkle(int slot, org.wpilib.units.measure.Frequency frameRate, org.wpilib.util.Color color) - Specified by:
twinklein classXCANLightController
-