|
CTRE Phoenix C++ 5.35.1
|
Animation that strobes the LEDs a specified color. More...
#include <ctre/phoenix/led/StrobeAnimation.h>
Public Member Functions | |
| StrobeAnimation (int r, int g, int b, int w=0, double speed=1, int numLed=-1, int ledOffset=0) | |
| Constructor for a StrobeAnimation. | |
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, int ledOffset) | |
| Constructor for the BaseStandardAnimation object. | |
| ~BaseTwoSizeAnimation () | |
| BaseStandardAnimation * | GetBaseStandardAnimation () |
| BaseTwoSizeAnimation * | GetBaseTwoSizeAnimation () |
| void | SetR (int r) |
| Sets the R value of the LEDs. | |
| void | SetG (int g) |
| Sets the G value of the LEDs. | |
| void | SetB (int b) |
| Sets the B value of the LEDs. | |
| void | SetW (int w) |
| Sets the W value of the LEDs. | |
| 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, int ledOffset) | |
| Constructor for an Animation class. | |
| virtual | ~Animation () |
| void | SetSpeed (double speed) |
| Sets the speed of the animation. | |
| void | SetNumLed (int numLed) |
| Sets the number of LEDs the animation will run on. | |
| void | SetLedOffset (int ledOffset) |
| Sets where the animation starts along the strip. | |
| int | GetAnimationIdx () |
| double | GetSpeed () |
| int | GetNumLed () |
| int | GetLedOffset () |
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, | ||
| int | ledOffset = 0 ) |
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 |
| ledOffset | Where to start the animation |