10#include <units/frequency.h>
11#include <units/time.h>
33 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
88 constexpr std::string_view
GetName()
const override
90 return "StrictFollower";
Common interface implemented by all control requests.
Definition ControlRequest.hpp:27
Follow the motor output of another Talon while ignoring the leader's invert setting.
Definition StrictFollower.hpp:32
int LeaderID
Device ID of the leader to follow.
Definition StrictFollower.hpp:39
constexpr StrictFollower & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition StrictFollower.hpp:124
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.
units::frequency::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition StrictFollower.hpp:54
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition StrictFollower.hpp:88
constexpr StrictFollower(int LeaderID)
Follow the motor output of another Talon while ignoring the leader's invert setting.
Definition StrictFollower.hpp:77
constexpr StrictFollower & WithLeaderID(int newLeaderID)
Modifies this Control Request's LeaderID parameter and returns itself for method-chaining and easier ...
Definition StrictFollower.hpp:102
constexpr ~StrictFollower() override
Definition StrictFollower.hpp:81
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14