11#include <wpi/units/frequency.hpp>
12#include <wpi/units/time.hpp>
13#include <wpi/units/dimensionless.hpp>
24 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
101 constexpr std::string_view
GetName()
const override
103 return "TwinkleOffAnimation";
150 Slot = std::move(newSlot);
165 Color = std::move(newColor);
constexpr ControlRequest(ControlRequest const &)=default
constexpr TwinkleOffAnimation & WithColor(signals::RGBWColor newColor)
Modifies this Control Request's Color parameter and returns itself for method-chaining and easier to ...
Definition TwinkleOffAnimation.hpp:163
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition TwinkleOffAnimation.hpp:101
constexpr TwinkleOffAnimation & WithMaxLEDsOnProportion(wpi::units::scalar_t newMaxLEDsOnProportion)
Modifies this Control Request's MaxLEDsOnProportion parameter and returns itself for method-chaining ...
Definition TwinkleOffAnimation.hpp:178
constexpr TwinkleOffAnimation(int LEDStartIndex, int LEDEndIndex)
Animation that randomly turns on LEDs until it reaches the maximum count, and then turns them all off...
Definition TwinkleOffAnimation.hpp:89
wpi::units::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition TwinkleOffAnimation.hpp:76
constexpr TwinkleOffAnimation & WithLEDStartIndex(int newLEDStartIndex)
Modifies this Control Request's LEDStartIndex parameter and returns itself for method-chaining and ea...
Definition TwinkleOffAnimation.hpp:116
wpi::units::scalar_t MaxLEDsOnProportion
The max proportion of LEDs that can be on, in the range [0.1, 1.0].
Definition TwinkleOffAnimation.hpp:50
constexpr TwinkleOffAnimation & WithUpdateFreqHz(wpi::units::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition TwinkleOffAnimation.hpp:222
int LEDEndIndex
The index of the last LED this animation controls (inclusive).
Definition TwinkleOffAnimation.hpp:37
constexpr TwinkleOffAnimation & WithSlot(int newSlot)
Modifies this Control Request's Slot parameter and returns itself for method-chaining and easier to u...
Definition TwinkleOffAnimation.hpp:148
std::string ToString() const override
Returns a string representation of the object.
std::map< std::string_view, std::string > GetControlInfo() const override
Gets information about this control request.
signals::RGBWColor Color
The color to use in the animation.
Definition TwinkleOffAnimation.hpp:46
constexpr ~TwinkleOffAnimation() override
Definition TwinkleOffAnimation.hpp:94
constexpr TwinkleOffAnimation & WithFrameRate(wpi::units::hertz_t newFrameRate)
Modifies this Control Request's FrameRate parameter and returns itself for method-chaining and easier...
Definition TwinkleOffAnimation.hpp:200
wpi::units::hertz_t FrameRate
The frame rate of the animation, from [2, 1000] Hz.
Definition TwinkleOffAnimation.hpp:61
int LEDStartIndex
The index of the first LED this animation controls (inclusive).
Definition TwinkleOffAnimation.hpp:32
constexpr TwinkleOffAnimation & WithLEDEndIndex(int newLEDEndIndex)
Modifies this Control Request's LEDEndIndex parameter and returns itself for method-chaining and easi...
Definition TwinkleOffAnimation.hpp:132
int Slot
The slot of this animation, within [0, 7].
Definition TwinkleOffAnimation.hpp:42
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 MotionMagicDutyCycle.hpp:17
Definition ExternalFeedbackConfigs.hpp:16
Definition motor_constants.h:14