#include <led_subsystem.h>
|
static constexpr unsigned | numIntegratedLEDs = 8 |
| Number of LEDs addressed before attached LED strip/panel.
|
|
◆ LEDSubsystem()
LEDSubsystem::LEDSubsystem |
( |
unsigned |
numAuxLEDs | ) |
|
|
explicit |
Construct a new LEDSubsystem object.
- Parameters
-
numAuxLEDs | Number of LEDs attached to the CANdle |
◆ CustomAnimateAuxLEDs()
Set LEDs in attached strip/panel to use custom animation. The LEDs will be updated on every call of the subsystem periodic function.
- Parameters
-
animation | Animation to use where led offset 0 is beginning of attached LEDs |
◆ CustomAnimateIntegratedLEDs()
Set LEDs built into CANdle to use custom animation. The LEDs will be updated on every call of the subsystem periodic function.
- Parameters
-
animation | Animation to use |
◆ GetDeltaUpdate()
Get sendable LED block updates to change from prev to current.
- Parameters
-
prev | Old LED state |
current | New LED state |
- Returns
- std::vector<LEDUpdateGroup> Minimal set of updates to change from prev to current
◆ Periodic()
void LEDSubsystem::Periodic |
( |
| ) |
|
|
override |
Will be called periodically whenever the CommandScheduler runs.
◆ StockAnimateAuxLEDs()
void LEDSubsystem::StockAnimateAuxLEDs |
( |
ctre::phoenix::led::Animation & |
animation, |
|
|
int |
slot |
|
) |
| |
Set LEDs in attached strip/panel to use stock animation.
- Parameters
-
animation | Animation to assign where led offset 0 is beginning of attached LEDs |
slot | Animation slot to use |
◆ StockAnimateIntegratedLEDs()
void LEDSubsystem::StockAnimateIntegratedLEDs |
( |
ctre::phoenix::led::Animation & |
animation, |
|
|
int |
slot |
|
) |
| |
Set LEDs built into CANdle to use stock animation.
- Parameters
-
animation | Animation to assign |
slot | Animation slot to use |
◆ m_controller
ctre::phoenix::led::CANdle argos_lib::LEDSubsystem::m_controller |
|
private |
LED controller instance with attached LEDs.
◆ m_currentLEDs
std::vector<LEDState> argos_lib::LEDSubsystem::m_currentLEDs |
|
private |
LED status to send as update.
◆ m_customAnimations
◆ m_prevLEDs
std::vector<LEDState> argos_lib::LEDSubsystem::m_prevLEDs |
|
private |
LED status prior to last update.
◆ numIntegratedLEDs
constexpr unsigned argos_lib::LEDSubsystem::numIntegratedLEDs = 8 |
|
staticconstexprprivate |
Number of LEDs addressed before attached LED strip/panel.
The documentation for this class was generated from the following files: