23class Diff_VelocityDutyCycle_Velocity final :
public ControlRequest {
24 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
30 VelocityDutyCycle AverageRequest;
34 VelocityDutyCycle DifferentialRequest;
49 units::frequency::hertz_t UpdateFreqHz{100_Hz};
60 constexpr Diff_VelocityDutyCycle_Velocity(VelocityDutyCycle AverageRequest, VelocityDutyCycle DifferentialRequest) :
ControlRequest{},
61 AverageRequest{std::move(AverageRequest)},
62 DifferentialRequest{std::move(DifferentialRequest)}
65 constexpr ~Diff_VelocityDutyCycle_Velocity()
override {}
72 constexpr std::string_view GetName()
const override
74 return "Diff_VelocityDutyCycle_Velocity";
86 constexpr Diff_VelocityDutyCycle_Velocity &WithAverageRequest(VelocityDutyCycle newAverageRequest)
88 AverageRequest = std::move(newAverageRequest);
101 constexpr Diff_VelocityDutyCycle_Velocity &WithDifferentialRequest(VelocityDutyCycle newDifferentialRequest)
103 DifferentialRequest = std::move(newDifferentialRequest);
123 constexpr Diff_VelocityDutyCycle_Velocity &WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
125 UpdateFreqHz = newUpdateFreqHz;
134 std::string ToString()
const override;
141 std::map<std::string, std::string> GetControlInfo()
const override;
constexpr ControlRequest()=default
Constructs a new Control Request.
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14