#include <simple_led_subsystem.h>
|
| | SimpleLedSubsystem (argos_lib::RobotInstance instance) |
| |
| void | Enable () |
| |
| void | Disable () |
| |
| void | SetLedsConnectedBrightness (bool connected) |
| |
| void | SetDisableAnimation (std::function< void()> animationFunction) |
| |
| void | SetLedGroupColor (LedGroup group, argos_lib::ArgosColor color, bool restorable=true) |
| | Sets group of leds to given color.
|
| |
| void | SetLedStripColor (LedStrip strip, argos_lib::ArgosColor color, bool restorable=true) |
| |
| void | SetAllGroupsColor (argos_lib::ArgosColor color, bool restorable=true) |
| | Sets all led groups to a given color.
|
| |
| void | SetAllGroupsFade (argos_lib::ArgosColor color, bool restorable=true) |
| |
| void | SetAllGroupsFlash (argos_lib::ArgosColor color, bool restorable=true) |
| |
| void | FlashStrip (LedStrip strip, argos_lib::ArgosColor color, bool restorable=true) |
| |
| void | SetAllGroupsLarson (argos_lib::ArgosColor color, bool restorable=true) |
| |
| argos_lib::ArgosColor | GetAllianceColor () |
| |
| void | SetAllGroupsAllianceColor (bool fade, bool restorable=true) |
| | Set all groups of LEDs to the alliance color.
|
| |
| void | StopAllAnimations (bool restorable=true) |
| |
| void | SetAllGroupsOff (bool restorable=true) |
| | Turn off all LEDs.
|
| |
| void | Periodic () override |
| |
| void | FireEverywhere (bool restorable=true) |
| |
| void | ColorSweep (argos_lib::ArgosColor color, bool correctGamma=true, bool restorable=true) |
| |
| void | TemporaryAnimate (std::function< void()> animationFunction, units::millisecond_t duration) |
| |
◆ SimpleLedSubsystem()
◆ ColorSweep()
| void SimpleLedSubsystem::ColorSweep |
( |
argos_lib::ArgosColor |
color, |
|
|
bool |
correctGamma = true, |
|
|
bool |
restorable = true |
|
) |
| |
◆ Disable()
| void SimpleLedSubsystem::Disable |
( |
| ) |
|
◆ Enable()
| void SimpleLedSubsystem::Enable |
( |
| ) |
|
◆ FireEverywhere()
| void SimpleLedSubsystem::FireEverywhere |
( |
bool |
restorable = true | ) |
|
◆ FlashStrip()
◆ GetAllianceColor()
◆ Periodic()
| void SimpleLedSubsystem::Periodic |
( |
| ) |
|
|
override |
Will be called periodically whenever the CommandScheduler runs.
◆ SetAllGroupsAllianceColor()
| void SimpleLedSubsystem::SetAllGroupsAllianceColor |
( |
bool |
fade, |
|
|
bool |
restorable = true |
|
) |
| |
Set all groups of LEDs to the alliance color.
◆ SetAllGroupsColor()
Sets all led groups to a given color.
- Parameters
-
| color | an ArgosColor to set the LEDs too |
◆ SetAllGroupsFade()
◆ SetAllGroupsFlash()
◆ SetAllGroupsLarson()
◆ SetAllGroupsOff()
| void SimpleLedSubsystem::SetAllGroupsOff |
( |
bool |
restorable = true | ) |
|
◆ SetDisableAnimation()
| void SimpleLedSubsystem::SetDisableAnimation |
( |
std::function< void()> |
animationFunction | ) |
|
◆ SetLedGroupColor()
Sets group of leds to given color.
- Parameters
-
| group | The group of leds to set |
| color | an ArgosColor to set the LEDs too |
◆ SetLedsConnectedBrightness()
| void SimpleLedSubsystem::SetLedsConnectedBrightness |
( |
bool |
connected | ) |
|
◆ SetLedStripColor()
◆ StopAllAnimations()
| void SimpleLedSubsystem::StopAllAnimations |
( |
bool |
restorable = true | ) |
|
◆ TemporaryAnimate()
| void SimpleLedSubsystem::TemporaryAnimate |
( |
std::function< void()> |
animationFunction, |
|
|
units::millisecond_t |
duration |
|
) |
| |
◆ inverted_backLeft
| constexpr bool SimpleLedSubsystem::inverted_backLeft = true |
|
staticconstexprprivate |
true indicates first index is at top of tower
◆ inverted_backRight
| constexpr bool SimpleLedSubsystem::inverted_backRight = true |
|
staticconstexprprivate |
◆ inverted_front
| constexpr bool SimpleLedSubsystem::inverted_front = true |
|
staticconstexprprivate |
◆ length_backLeft
| constexpr int SimpleLedSubsystem::length_backLeft = 23 |
|
staticconstexprprivate |
◆ length_backRight
| constexpr int SimpleLedSubsystem::length_backRight = 23 |
|
staticconstexprprivate |
◆ length_front
| constexpr int SimpleLedSubsystem::length_front = 9 |
|
staticconstexprprivate |
◆ m_CANdle
| std::optional<ctre::phoenix::led::CANdle> SimpleLedSubsystem::m_CANdle |
|
private |
◆ m_disableUpdateFunction
| std::function<void()> SimpleLedSubsystem::m_disableUpdateFunction |
|
private |
◆ m_enabled
| bool SimpleLedSubsystem::m_enabled |
|
private |
◆ m_hasBeenConnected
| bool SimpleLedSubsystem::m_hasBeenConnected |
|
private |
◆ m_latestAlliance
| frc::DriverStation::Alliance SimpleLedSubsystem::m_latestAlliance |
|
private |
◆ m_ledUpdateFunction
| std::function<void()> SimpleLedSubsystem::m_ledUpdateFunction |
|
private |
◆ m_log
◆ m_restoreAnimationFunction
| std::optional<std::function<void(void)> > SimpleLedSubsystem::m_restoreAnimationFunction |
|
private |
◆ m_startTime
| std::chrono::time_point<std::chrono::steady_clock> SimpleLedSubsystem::m_startTime |
|
private |
◆ m_temporaryDuration
| units::millisecond_t SimpleLedSubsystem::m_temporaryDuration |
|
private |
◆ startIndex_backLeft
| constexpr int SimpleLedSubsystem::startIndex_backLeft = 8 |
|
staticconstexprprivate |
Address of first LED in strip.
◆ startIndex_backRight
| constexpr int SimpleLedSubsystem::startIndex_backRight = 31 |
|
staticconstexprprivate |
◆ startIndex_front
| constexpr int SimpleLedSubsystem::startIndex_front = 54 |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: