Inherited by com.ctre.phoenix.led.BaseStandardAnimation, and com.ctre.phoenix.led.BaseTwoSizeAnimation.
The base class for all animations that CANdle supports.
◆ Animation()
com.ctre.phoenix.led.Animation.Animation |
( |
int |
idx, |
|
|
double |
speed, |
|
|
int |
numLed |
|
) |
| |
|
inline |
Constructor for an Animation class
- Parameters
-
idx | The animation-specific ID |
speed | The rate at which the animation runs at. Higher is generally faster |
numLed | The number of LEDs to run the animation on |
◆ setNumLed()
void com.ctre.phoenix.led.Animation.setNumLed |
( |
int |
numLed | ) |
|
|
inline |
Sets the number of LEDs the animation will run on
- Parameters
-
numLed | The number of LEDs to run the animation on |
◆ setSpeed()
void com.ctre.phoenix.led.Animation.setSpeed |
( |
double |
speed | ) |
|
|
inline |
Sets the speed of the animation
- Parameters
-
speed | The rate at which the animation runs at. Higher is generally faster |
The documentation for this class was generated from the following file:
- Phoenix-api/java/src/main/java/com/ctre/phoenix/led/Animation.java