14#include <units/frequency.h>
15#include <units/time.h>
28 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash,
bool cancelOtherRequests, std::shared_ptr<ControlRequest> &req)
override
30 if (req.get() !=
this)
32 auto const reqCast =
dynamic_cast<CoastOut *
>(req.get());
33 if (reqCast !=
nullptr)
39 req = std::make_shared<CoastOut>(*
this);
97 ss <<
"class: CoastOut" << std::endl;
109 std::map<std::string, std::string> controlInfo;
110 std::stringstream ss;
111 controlInfo[
"Name"] =
GetName();
CTREXPORT int c_ctre_phoenix6_RequestControlCoastOut(const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
Request coast neutral output of actuator.
Definition: CoastOut.hpp:27
std::string ToString() const override
Returns a string representation of the object.
Definition: CoastOut.hpp:94
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
Definition: CoastOut.hpp:107
units::frequency::hertz_t UpdateFreqHz
The period at which this control will update at.
Definition: CoastOut.hpp:60
CoastOut & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the period at which this control will update at.
Definition: CoastOut.hpp:84
CoastOut()
Request coast neutral output of actuator.
Definition: CoastOut.hpp:67
Abstract Control Request class that other control requests extend for use.
Definition: ControlRequest.hpp:28
std::string const & GetName() const
Definition: ControlRequest.hpp:51
Definition: string_util.hpp:15