10#include <units/frequency.h>
11#include <units/time.h>
23 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
66 constexpr std::string_view
GetName()
const override
68 return "EmptyAnimation";
83 Slot = std::move(newSlot);
Common interface implemented by all control requests.
Definition ControlRequest.hpp:27
An empty animation, clearing any animation in the specified slot.
Definition EmptyAnimation.hpp:22
units::frequency::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition EmptyAnimation.hpp:45
constexpr EmptyAnimation & WithSlot(int newSlot)
Modifies this Control Request's Slot parameter and returns itself for method-chaining and easier to u...
Definition EmptyAnimation.hpp:81
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
constexpr EmptyAnimation & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition EmptyAnimation.hpp:103
std::string ToString() const override
Returns a string representation of the object.
constexpr EmptyAnimation(int Slot)
An empty animation, clearing any animation in the specified slot.
Definition EmptyAnimation.hpp:55
int Slot
The slot of this animation, within [0, 7].
Definition EmptyAnimation.hpp:30
constexpr ~EmptyAnimation() override
Definition EmptyAnimation.hpp:59
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition EmptyAnimation.hpp:66
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14