11#include <units/frequency.h>
12#include <units/time.h>
24 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
82 constexpr std::string_view
GetName()
const override
130 Color = std::move(newColor);
Common interface implemented by all control requests.
Definition ControlRequest.hpp:27
Sets LEDs to a solid color.
Definition SolidColor.hpp:23
int LEDStartIndex
The index of the first LED this animation controls (inclusive).
Definition SolidColor.hpp:32
constexpr SolidColor & WithLEDStartIndex(int newLEDStartIndex)
Modifies this Control Request's LEDStartIndex parameter and returns itself for method-chaining and ea...
Definition SolidColor.hpp:97
constexpr SolidColor(int LEDStartIndex, int LEDEndIndex)
The frequency at which this control will update.
Definition SolidColor.hpp:70
int LEDEndIndex
The index of the last LED this animation controls (inclusive).
Definition SolidColor.hpp:37
constexpr SolidColor & WithColor(signals::RGBWColor newColor)
Modifies this Control Request's Color parameter and returns itself for method-chaining and easier to ...
Definition SolidColor.hpp:128
constexpr SolidColor & WithLEDEndIndex(int newLEDEndIndex)
Modifies this Control Request's LEDEndIndex parameter and returns itself for method-chaining and easi...
Definition SolidColor.hpp:113
constexpr SolidColor & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition SolidColor.hpp:150
constexpr ~SolidColor() override
Definition SolidColor.hpp:75
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition SolidColor.hpp:82
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
std::string ToString() const override
Returns a string representation of the object.
signals::RGBWColor Color
The color to apply to the LEDs.
Definition SolidColor.hpp:41
Represents an RGBW color that can be applied to an LED.
Definition RGBWColor.hpp:27
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14