#include <BaseStandardAnimation.h>
Inherits ctre::phoenix::led::Animation.
Inherited by ctre::phoenix::led::FireAnimation, ctre::phoenix::led::RainbowAnimation, and ctre::phoenix::led::RgbFadeAnimation.
The base class for one generic type of animation. These animations do not allow the user to specify a color.
◆ BaseStandardAnimation()
ctre::phoenix::led::BaseStandardAnimation::BaseStandardAnimation |
( |
int |
idx, |
|
|
double |
brightness, |
|
|
double |
speed, |
|
|
int |
numLed, |
|
|
double |
param4, |
|
|
double |
param5 |
|
) |
| |
Constructor for the BaseStandardAnimation object
- Parameters
-
idx | The animation-specific ID |
brightness | The brightness to run the animation at. This is a scalar from [0, 1] |
speed | The rate at which the animation runs at. Higher is generally faster |
numLed | The number of LEDs to run the animation on |
param4 | Animation-specific parameter |
param5 | Animation-specific parameter |
◆ GetBaseStandardAnimation()
◆ GetBaseTwoSizeAnimation()
◆ SetBrightness()
void ctre::phoenix::led::BaseStandardAnimation::SetBrightness |
( |
double |
brightness | ) |
|
Sets the brightness of this animation
- Parameters
-
brightness | The brightness to run the animation at. This is a scalar from [0, 1] |
The documentation for this class was generated from the following file: