10#include <units/frequency.h>
11#include <units/time.h>
21 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
65 constexpr std::string_view
GetName()
const override
Common interface implemented by all control requests.
Definition ControlRequest.hpp:27
Applies full neutral-brake by shorting motor leads together.
Definition StaticBrake.hpp:20
constexpr StaticBrake & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition StaticBrake.hpp:108
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
std::string ToString() const override
Returns a string representation of the object.
bool UseTimesync
Set to true to delay applying this control request until a timesync boundary (requires Phoenix Pro an...
Definition StaticBrake.hpp:34
constexpr StaticBrake & WithUseTimesync(bool newUseTimesync)
Modifies this Control Request's UseTimesync parameter and returns itself for method-chaining and easi...
Definition StaticBrake.hpp:86
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition StaticBrake.hpp:65
constexpr StaticBrake()
Applies full neutral-brake by shorting motor leads together.
Definition StaticBrake.hpp:55
constexpr ~StaticBrake() override
Definition StaticBrake.hpp:58
units::frequency::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition StaticBrake.hpp:49
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14