14#include <units/frequency.h>
15#include <units/time.h>
28 bool ApplyConfigsOnRequest;
30 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash,
bool cancelOtherRequests, std::shared_ptr<ControlRequest> &req)
35 if (req.get() !=
this)
37 auto const reqCast =
dynamic_cast<NeutralOut *
>(req.get());
38 if (reqCast !=
nullptr)
44 req = std::make_shared<NeutralOut>(*
this);
49 std::string strs{ss.str()};
51 ApplyConfigsOnRequest =
false;
114 std::stringstream ss;
115 ss <<
"class: NeutralOut" << std::endl;
CTREXPORT int c_ctre_phoenixpro_requestConfigApply(const char *canbus, uint32_t ecuEncoding, double timeoutSeconds, const char *str, uint32_t strlen, bool forceApply)
CTREXPORT int c_ctre_phoenixpro_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:65
Request neutral output of actuator.
Definition: NeutralOut.hpp:27
units::time::second_t ConfigTimeout
The timeout when sending configs associated with this control.
Definition: NeutralOut.hpp:63
NeutralOut & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the period at which this control will update at.
Definition: NeutralOut.hpp:102
std::string ToString() const
Returns a string representation of the object.
Definition: NeutralOut.hpp:112
NeutralOut()
Request neutral output of actuator.
Definition: NeutralOut.hpp:83
units::frequency::hertz_t UpdateFreqHz
The period at which this control will update at.
Definition: NeutralOut.hpp:76
void ForceApplyConfigs()
Forces configs to be applied the next time this is used in a setControl.
Definition: NeutralOut.hpp:125
Definition: string_util.hpp:14