Class BlingIOSim
java.lang.Object
frc.alotobots.library.subsystems.bling.io.BlingIOSim
- All Implemented Interfaces:
BlingIO
Simulation implementation of the BlingIO interface. Provides a mock implementation for testing
and simulation purposes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.alotobots.library.subsystems.bling.io.BlingIO
BlingIO.BlingIOInputs, BlingIO.LoggedColor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the current animation, stopping any running patterns.voidClears the current solid color, turning off all LEDs.voidsetAnimation(com.ctre.phoenix.led.Animation animation) Sets a new animation pattern for the LEDs.voidsetSolidColor(BlingIO.LoggedColor color) Sets the LEDs to display a solid color.voidupdateInputs(BlingIO.BlingIOInputs inputs) Updates the input values for logging and monitoring.
-
Constructor Details
-
BlingIOSim
public BlingIOSim()Constructs a new BlingIOSim instance.
-
-
Method Details
-
updateInputs
Description copied from interface:BlingIOUpdates the input values for logging and monitoring.- Specified by:
updateInputsin interfaceBlingIO- Parameters:
inputs- The inputs object to update with current state
-
setAnimation
public void setAnimation(com.ctre.phoenix.led.Animation animation) Description copied from interface:BlingIOSets a new animation pattern for the LEDs.- Specified by:
setAnimationin interfaceBlingIO- Parameters:
animation- The animation pattern to display
-
clearAnimation
public void clearAnimation()Description copied from interface:BlingIOClears the current animation, stopping any running patterns.- Specified by:
clearAnimationin interfaceBlingIO
-
setSolidColor
Description copied from interface:BlingIOSets the LEDs to display a solid color.- Specified by:
setSolidColorin interfaceBlingIO- Parameters:
color- The color to display
-
clearSolidColor
public void clearSolidColor()Description copied from interface:BlingIOClears the current solid color, turning off all LEDs.- Specified by:
clearSolidColorin interfaceBlingIO
-