Class MockCANLightController
java.lang.Object
xbot.common.controls.actuators.XCANLightController
xbot.common.controls.actuators.mock_adapters.MockCANLightController
Mock adapter for the CAN light controller for testing purposes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class XCANLightController
XCANLightController.AnimationType, XCANLightController.XCANLightControllerFactory -
Field Summary
Fields inherited from class XCANLightController
busId, config, deviceId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMockCANLightController(CANLightControllerInfo info, DevicePolice police) -
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
-
Constructor Details
-
MockCANLightController
@AssistedInject protected MockCANLightController(@Assisted("info") CANLightControllerInfo info, 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
-