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 TypeMethodDescriptionvoid
Clears the current animation, stopping any running patterns.void
setAnimation
(com.ctre.phoenix.led.Animation animation) Sets a new animation pattern for the LEDs.void
updateInputs
(BlingIO.BlingIOInputs inputs) Updates the input values for logging and monitoring.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface frc.alotobots.library.subsystems.bling.io.BlingIO
clearSolidColor, setSolidColor
-
Constructor Details
-
BlingIOSim
public BlingIOSim()Constructs a new BlingIOSim instance.
-
-
Method Details
-
updateInputs
Description copied from interface:BlingIO
Updates the input values for logging and monitoring.- Specified by:
updateInputs
in 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:BlingIO
Sets a new animation pattern for the LEDs.- Specified by:
setAnimation
in interfaceBlingIO
- Parameters:
animation
- The animation pattern to display
-
clearAnimation
public void clearAnimation()Description copied from interface:BlingIO
Clears the current animation, stopping any running patterns.- Specified by:
clearAnimation
in interfaceBlingIO
-