11#include <units/frequency.h>
12#include <units/time.h>
31 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
98 constexpr std::string_view
GetName()
const override
Common interface implemented by all control requests.
Definition ControlRequest.hpp:27
Follow the motor output of another Talon.
Definition Follower.hpp:30
constexpr Follower & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition Follower.hpp:153
constexpr Follower & WithLeaderID(int newLeaderID)
Modifies this Control Request's LeaderID parameter and returns itself for method-chaining and easier ...
Definition Follower.hpp:112
signals::MotorAlignmentValue MotorAlignment
Set to Aligned for motor invert to match the leader's configured Invert - which is typical when leade...
Definition Follower.hpp:45
std::string ToString() const override
Returns a string representation of the object.
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
constexpr Follower(int LeaderID, signals::MotorAlignmentValue MotorAlignment)
Follow the motor output of another Talon.
Definition Follower.hpp:86
int LeaderID
Device ID of the leader to follow.
Definition Follower.hpp:37
constexpr ~Follower() override
Definition Follower.hpp:91
constexpr Follower & WithMotorAlignment(signals::MotorAlignmentValue newMotorAlignment)
Modifies this Control Request's MotorAlignment parameter and returns itself for method-chaining and e...
Definition Follower.hpp:131
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition Follower.hpp:98
units::frequency::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition Follower.hpp:60
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14
The relationship between two motors in a mechanism.
Definition SpnEnums.hpp:5130