10#include <wpi/units/frequency.hpp>
11#include <wpi/units/time.hpp>
12#include <wpi/units/dimensionless.hpp>
23 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
96 constexpr std::string_view
GetName()
const override
98 return "RgbFadeAnimation";
145 Slot = std::move(newSlot);
constexpr ControlRequest(ControlRequest const &)=default
constexpr RgbFadeAnimation(int LEDStartIndex, int LEDEndIndex)
Animation that fades all the LEDs of a strip simultaneously between Red, Green, and Blue.
Definition RgbFadeAnimation.hpp:84
constexpr RgbFadeAnimation & WithFrameRate(wpi::units::hertz_t newFrameRate)
Modifies this Control Request's FrameRate parameter and returns itself for method-chaining and easier...
Definition RgbFadeAnimation.hpp:180
constexpr ~RgbFadeAnimation() override
Definition RgbFadeAnimation.hpp:89
int LEDStartIndex
The index of the first LED this animation controls (inclusive).
Definition RgbFadeAnimation.hpp:31
wpi::units::hertz_t FrameRate
The frame rate of the animation, from [2, 1000] Hz.
Definition RgbFadeAnimation.hpp:56
constexpr RgbFadeAnimation & WithUpdateFreqHz(wpi::units::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition RgbFadeAnimation.hpp:202
constexpr RgbFadeAnimation & WithLEDEndIndex(int newLEDEndIndex)
Modifies this Control Request's LEDEndIndex parameter and returns itself for method-chaining and easi...
Definition RgbFadeAnimation.hpp:127
int LEDEndIndex
The index of the last LED this animation controls (inclusive).
Definition RgbFadeAnimation.hpp:36
constexpr RgbFadeAnimation & WithSlot(int newSlot)
Modifies this Control Request's Slot parameter and returns itself for method-chaining and easier to u...
Definition RgbFadeAnimation.hpp:143
wpi::units::scalar_t Brightness
The brightness of the animation, as a scalar from 0.0 to 1.0.
Definition RgbFadeAnimation.hpp:45
constexpr RgbFadeAnimation & WithBrightness(wpi::units::scalar_t newBrightness)
Modifies this Control Request's Brightness parameter and returns itself for method-chaining and easie...
Definition RgbFadeAnimation.hpp:158
constexpr RgbFadeAnimation & WithLEDStartIndex(int newLEDStartIndex)
Modifies this Control Request's LEDStartIndex parameter and returns itself for method-chaining and ea...
Definition RgbFadeAnimation.hpp:111
wpi::units::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition RgbFadeAnimation.hpp:71
std::string ToString() const override
Returns a string representation of the object.
int Slot
The slot of this animation, within [0, 7].
Definition RgbFadeAnimation.hpp:41
std::map< std::string_view, std::string > GetControlInfo() const override
Gets information about this control request.
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition RgbFadeAnimation.hpp:96
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