CTRE_Phoenix 5.20.2
ctre::phoenix::led::Animation Class Referenceabstract

#include <Animation.h>

Inherited by ctre::phoenix::led::BaseStandardAnimation, and ctre::phoenix::led::BaseTwoSizeAnimation.

Public Member Functions

 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

The base class for all animations that CANdle supports.

Constructor & Destructor Documentation

◆ Animation()

ctre::phoenix::led::Animation::Animation ( int  idx,
double  speed,
int  numLed 
)

Constructor for an Animation class

Parameters
idxThe animation-specific ID
speedThe rate at which the animation runs at. Higher is generally faster
numLedThe number of LEDs to run the animation on

Member Function Documentation

◆ SetNumLed()

void ctre::phoenix::led::Animation::SetNumLed ( int  numLed)

Sets the number of LEDs the animation will run on

Parameters
numLedThe number of LEDs to run the animation on

◆ SetSpeed()

void ctre::phoenix::led::Animation::SetSpeed ( double  speed)

Sets the speed of the animation

Parameters
speedThe rate at which the animation runs at. Higher is generally faster

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