2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
argos_lib::LEDState Struct Reference

Color and animation status for an individual LED. More...

#include <led_subsystem.h>

Public Member Functions

bool operator== (const LEDState &other) const
 It's an equality comparison operator...
 
bool operator!= (const LEDState &other) const
 It's an inequality comparison operator...
 
LEDStateoperator= (const frc::AddressableLED::LEDData &other)
 Copy assignment operator.
 

Public Attributes

bool animated {false}
 True indicates this is using a stock animation.
 
frc::AddressableLED::LEDData color
 Color of LED. Only used when animated is false.
 

Detailed Description

Color and animation status for an individual LED.

Member Function Documentation

◆ operator!=()

bool LEDState::operator!= ( const LEDState other) const

It's an inequality comparison operator...

Parameters
otherLEDState to compare to
Returns
True when states are different

◆ operator=()

LEDState & LEDState::operator= ( const frc::AddressableLED::LEDData &  other)

Copy assignment operator.

Parameters
otherNew value to assign to self
Returns
LEDState& Reference to this object after assignment

◆ operator==()

bool LEDState::operator== ( const LEDState other) const

It's an equality comparison operator...

Parameters
otherLEDState to compare to
Returns
True when both states are equivalent

Member Data Documentation

◆ animated

bool argos_lib::LEDState::animated {false}

True indicates this is using a stock animation.

◆ color

frc::AddressableLED::LEDData argos_lib::LEDState::color

Color of LED. Only used when animated is false.


The documentation for this struct was generated from the following files: