CTRE_Phoenix 5.20.2
ctre::phoenix::led::RainbowAnimation Class Reference

#include <RainbowAnimation.h>

Inherits ctre::phoenix::led::BaseStandardAnimation.

Public Member Functions

 RainbowAnimation (double brightness=1, double speed=1, int numLed=-1)
 
- Public Member Functions inherited from ctre::phoenix::led::BaseStandardAnimation
 BaseStandardAnimation (int idx, double brightness, double speed, int numLed, double param4, double param5)
 
BaseStandardAnimationGetBaseStandardAnimation ()
 
BaseTwoSizeAnimationGetBaseTwoSizeAnimation ()
 
void SetBrightness (double brightness)
 
void SetParam4 (double param4)
 
void SetParam5 (double param5)
 
double GetBrightness ()
 
double GetParam4 ()
 
double GetParam5 ()
 
- 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 BaseStandardAnimationGetBaseStandardAnimation ()=0
 
virtual BaseTwoSizeAnimationGetBaseTwoSizeAnimation ()=0
 
int GetAnimationIdx ()
 
double GetSpeed ()
 
int GetNumLed ()
 

Detailed Description

Animation that creates a rainbow throughout all the LEDs

Constructor & Destructor Documentation

◆ RainbowAnimation()

ctre::phoenix::led::RainbowAnimation::RainbowAnimation ( double  brightness = 1,
double  speed = 1,
int  numLed = -1 
)

Constructor for a RainbowAnimation

Parameters
brightnessThe brightness of the LEDs [0, 1]
speedHow fast the rainbow travels through the leds [0, 1]
numLedHow many LEDs are controlled by the CANdle

The documentation for this class was generated from the following file: