CTRE_Phoenix 5.20.2
|
#include <StrobeAnimation.h>
Inherits ctre::phoenix::led::BaseTwoSizeAnimation.
Public Member Functions | |
StrobeAnimation (int r, int g, int b, int w=0, double speed=1, int numLed=-1) | |
Public Member Functions inherited from ctre::phoenix::led::BaseTwoSizeAnimation | |
BaseTwoSizeAnimation (int idx, int r, int g, int b, int w, double speed, int numLed, int direction, int size) | |
BaseStandardAnimation * | GetBaseStandardAnimation () |
BaseTwoSizeAnimation * | GetBaseTwoSizeAnimation () |
void | SetR (int r) |
void | SetG (int g) |
void | SetB (int b) |
void | SetW (int w) |
void | SetDirection (int direction) |
void | SetSize (int size) |
int | GetR () |
int | GetG () |
int | GetB () |
int | GetW () |
int | GetDirection () |
int | GetSize () |
Public Member Functions inherited from ctre::phoenix::led::Animation | |
Animation (int idx, double speed, int numLed) | |
void | SetSpeed (double speed) |
void | SetNumLed (int numLed) |
virtual BaseStandardAnimation * | GetBaseStandardAnimation ()=0 |
virtual BaseTwoSizeAnimation * | GetBaseTwoSizeAnimation ()=0 |
int | GetAnimationIdx () |
double | GetSpeed () |
int | GetNumLed () |
Animation that strobes the LEDs a specified color
ctre::phoenix::led::StrobeAnimation::StrobeAnimation | ( | int | r, |
int | g, | ||
int | b, | ||
int | w = 0 , |
||
double | speed = 1 , |
||
int | numLed = -1 |
||
) |
Constructor for a StrobeAnimation
r | How much red should the color have [0, 255] |
g | How much green should the color have [0, 255] |
b | How much blue should the color have [0, 255] |
w | How much white should the color have [0, 255] |
speed | How fast should the color travel the strip [0, 1] |
numLed | How many LEDs the CANdle controls |