10#include <units/frequency.h>
11#include <units/time.h>
31 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
83 constexpr std::string_view
GetName()
const override
85 return "DifferentialStrictFollower";
Common interface implemented by all control requests.
Definition ControlRequest.hpp:27
Follow the differential motor output of another Talon while ignoring the leader's invert setting.
Definition DifferentialStrictFollower.hpp:30
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition DifferentialStrictFollower.hpp:83
std::string ToString() const override
Returns a string representation of the object.
units::frequency::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition DifferentialStrictFollower.hpp:52
constexpr DifferentialStrictFollower(int LeaderID)
Follow the differential motor output of another Talon while ignoring the leader's invert setting.
Definition DifferentialStrictFollower.hpp:72
constexpr DifferentialStrictFollower & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition DifferentialStrictFollower.hpp:119
constexpr ~DifferentialStrictFollower() override
Definition DifferentialStrictFollower.hpp:76
int LeaderID
Device ID of the differential leader to follow.
Definition DifferentialStrictFollower.hpp:37
constexpr DifferentialStrictFollower & WithLeaderID(int newLeaderID)
Modifies this Control Request's LeaderID parameter and returns itself for method-chaining and easier ...
Definition DifferentialStrictFollower.hpp:97
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14