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<CoastOut *
>(req.get());
38 if (reqCast !=
nullptr)
44 req = std::make_shared<CoastOut>(*
this);
49 std::string strs{ss.str()};
51 ApplyConfigsOnRequest =
false;
114 std::stringstream ss;
115 ss <<
"class: CoastOut" << 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_RequestControlCoastOut(const char *canbus, uint32_t ecuEncoding, double updateTime, bool cancelOtherRequests)
Request coast neutral output of actuator.
Definition: CoastOut.hpp:27
units::frequency::hertz_t UpdateFreqHz
The period at which this control will update at.
Definition: CoastOut.hpp:76
CoastOut & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the period at which this control will update at.
Definition: CoastOut.hpp:102
units::time::second_t ConfigTimeout
The timeout when sending configs associated with this control.
Definition: CoastOut.hpp:63
void ForceApplyConfigs()
Forces configs to be applied the next time this is used in a setControl.
Definition: CoastOut.hpp:125
std::string ToString() const
Returns a string representation of the object.
Definition: CoastOut.hpp:112
CoastOut()
Request coast neutral output of actuator.
Definition: CoastOut.hpp:83
Abstract Control Request class that other control requests extend for use.
Definition: ControlRequest.hpp:65
Definition: string_util.hpp:14