2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
|
#include <frc/AddressableLED.h>
#include <algorithm>
#include <vector>
Go to the source code of this file.
Classes | |
class | argos_lib::led::Array2D< T > |
Array2D representation where origin is at bottom left. More... | |
struct | argos_lib::led::PanelScanParams |
Namespaces | |
namespace | argos_lib |
namespace | argos_lib::led |
Typedefs | |
using | argos_lib::led::Panel = Array2D< frc::AddressableLED::LEDData > |
Pixels in a panel. | |
using | argos_lib::led::Mask = Array2D< float > |
using | argos_lib::led::Strip = std::vector< frc::AddressableLED::LEDData > |
A strip of LEDs. | |
Enumerations | |
enum class | argos_lib::led::PrimaryScanDirection { argos_lib::led::Vertical , argos_lib::led::Horizontal } |
When representing a panel as a strip, sequential addresses are in this direction. Note that the actual scan direction will alternate on every row/column in the secondary scan direction. For example, if the primary scan direction is vertical, adjacent columns will alternate between up and down. More... | |
enum class | argos_lib::led::FirstPixelPosition { argos_lib::led::TopRight , argos_lib::led::TopLeft , argos_lib::led::BottomLeft , argos_lib::led::BottomRight } |
When representing a panel as a strip, which pixel is the first address. More... | |
Functions | |
Strip | argos_lib::led::Serialize (const Panel &panel, const PanelScanParams ¶ms) |
Convert a panel to a 1D vector of pixels in addressing order. This is a helper function because many panel animations are easier to design in 2D space then convert back to address order when it comes time to display. | |