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<NeutralOut *
>(req.get());
33 if (reqCast !=
nullptr)
39 req = std::make_shared<NeutralOut>(*
this);
97 ss <<
"class: NeutralOut" << std::endl;
109 std::map<std::string, std::string> controlInfo;
110 std::stringstream ss;
111 controlInfo[
"Name"] =
GetName();
CTREXPORT int c_ctre_phoenix6_RequestControlNeutralOut(const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
Abstract Control Request class that other control requests extend for use.
Definition: ControlRequest.hpp:28
std::string const & GetName() const
Definition: ControlRequest.hpp:51
Request neutral output of actuator.
Definition: NeutralOut.hpp:27
NeutralOut & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the period at which this control will update at.
Definition: NeutralOut.hpp:84
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
Definition: NeutralOut.hpp:107
NeutralOut()
Request neutral output of actuator.
Definition: NeutralOut.hpp:67
units::frequency::hertz_t UpdateFreqHz
The period at which this control will update at.
Definition: NeutralOut.hpp:60
std::string ToString() const override
Returns a string representation of the object.
Definition: NeutralOut.hpp:94
Definition: string_util.hpp:15