11#include <wpi/units/frequency.hpp>
12#include <wpi/units/time.hpp>
30 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 "DifferentialFollower";
constexpr ControlRequest(ControlRequest const &)=default
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
signals::MotorAlignmentValue MotorAlignment
Set to Aligned for motor invert to match the leader's configured Invert - which is typical when leade...
Definition DifferentialFollower.hpp:44
constexpr DifferentialFollower & WithLeaderID(int newLeaderID)
Modifies this Control Request's LeaderID parameter and returns itself for method-chaining and easier ...
Definition DifferentialFollower.hpp:110
constexpr ~DifferentialFollower() override
Definition DifferentialFollower.hpp:89
constexpr DifferentialFollower & WithMotorAlignment(signals::MotorAlignmentValue newMotorAlignment)
Modifies this Control Request's MotorAlignment parameter and returns itself for method-chaining and e...
Definition DifferentialFollower.hpp:129
constexpr DifferentialFollower(int LeaderID, signals::MotorAlignmentValue MotorAlignment)
Follow the differential motor output of another Talon.
Definition DifferentialFollower.hpp:84
wpi::units::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition DifferentialFollower.hpp:59
std::string ToString() const override
Returns a string representation of the object.
int LeaderID
Device ID of the differential leader to follow.
Definition DifferentialFollower.hpp:36
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition DifferentialFollower.hpp:96
constexpr DifferentialFollower & WithUpdateFreqHz(wpi::units::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition DifferentialFollower.hpp:151
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
The relationship between two motors in a mechanism.
Definition SpnEnums.hpp:5130