10#include <units/frequency.h>
11#include <units/time.h>
12#include <units/angle.h>
34 ctre::phoenix::StatusCode SendRequest(
const char *network, uint32_t deviceHash, std::shared_ptr<ControlRequest> &req)
const override;
181 constexpr std::string_view
GetName()
const override
183 return "DifferentialMotionMagicExpoDutyCycle";
Common interface implemented by all control requests.
Definition ControlRequest.hpp:27
Requests Motion Magic® to target a final position using an exponential motion profile,...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:33
constexpr DifferentialMotionMagicExpoDutyCycle & WithEnableFOC(bool newEnableFOC)
Modifies this Control Request's EnableFOC parameter and returns itself for method-chaining and easier...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:241
constexpr DifferentialMotionMagicExpoDutyCycle & WithLimitForwardMotion(bool newLimitForwardMotion)
Modifies this Control Request's LimitForwardMotion parameter and returns itself for method-chaining a...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:310
bool LimitReverseMotion
Set to true to force reverse limiting.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:95
bool EnableFOC
Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15% on supp...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:64
constexpr DifferentialMotionMagicExpoDutyCycle(units::angle::turn_t AveragePosition, units::angle::turn_t DifferentialPosition)
Requests Motion Magic® to target a final position using an exponential motion profile,...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:169
units::angle::turn_t DifferentialPosition
Differential position to drive toward in rotations.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:50
constexpr DifferentialMotionMagicExpoDutyCycle & WithIgnoreSoftwareLimits(bool newIgnoreSoftwareLimits)
Modifies this Control Request's IgnoreSoftwareLimits parameter and returns itself for method-chaining...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:371
constexpr DifferentialMotionMagicExpoDutyCycle & WithUpdateFreqHz(units::frequency::hertz_t newUpdateFreqHz)
Sets the frequency at which this control will update.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:415
constexpr DifferentialMotionMagicExpoDutyCycle & WithAveragePosition(units::angle::turn_t newAveragePosition)
Modifies this Control Request's AveragePosition parameter and returns itself for method-chaining and ...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:198
bool IgnoreSoftwareLimits
Set to true to ignore software limits, instead allowing motion.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:118
int DifferentialSlot
Select which gains are applied to the differential controller by selecting the slot.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:76
constexpr std::string_view GetName() const override
Gets the name of this control request.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:181
constexpr DifferentialMotionMagicExpoDutyCycle & WithIgnoreHardwareLimits(bool newIgnoreHardwareLimits)
Modifies this Control Request's IgnoreHardwareLimits parameter and returns itself for method-chaining...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:350
std::string ToString() const override
Returns a string representation of the object.
units::frequency::hertz_t UpdateFreqHz
The frequency at which this control will update.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:144
bool LimitForwardMotion
Set to true to force forward limiting.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:89
bool OverrideBrakeDurNeutral
Set to true to static-brake the rotor when output is zero (or within deadband).
Definition DifferentialMotionMagicExpoDutyCycle.hpp:83
bool UseTimesync
Set to true to delay applying this control request until a timesync boundary (requires Phoenix Pro an...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:129
constexpr ~DifferentialMotionMagicExpoDutyCycle() override
Definition DifferentialMotionMagicExpoDutyCycle.hpp:174
int AverageSlot
Select which gains are applied to the average controller by selecting the slot.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:70
std::map< std::string, std::string > GetControlInfo() const override
Gets information about this control request.
constexpr DifferentialMotionMagicExpoDutyCycle & WithAverageSlot(int newAverageSlot)
Modifies this Control Request's AverageSlot parameter and returns itself for method-chaining and easi...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:258
units::angle::turn_t AveragePosition
Average position to drive toward in rotations.
Definition DifferentialMotionMagicExpoDutyCycle.hpp:43
constexpr DifferentialMotionMagicExpoDutyCycle & WithOverrideBrakeDurNeutral(bool newOverrideBrakeDurNeutral)
Modifies this Control Request's OverrideBrakeDurNeutral parameter and returns itself for method-chain...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:293
constexpr DifferentialMotionMagicExpoDutyCycle & WithDifferentialPosition(units::angle::turn_t newDifferentialPosition)
Modifies this Control Request's DifferentialPosition parameter and returns itself for method-chaining...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:216
bool IgnoreHardwareLimits
Set to true to ignore hardware limit switches and the LimitForwardMotion and LimitReverseMotion param...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:108
constexpr DifferentialMotionMagicExpoDutyCycle & WithUseTimesync(bool newUseTimesync)
Modifies this Control Request's UseTimesync parameter and returns itself for method-chaining and easi...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:393
constexpr DifferentialMotionMagicExpoDutyCycle & WithDifferentialSlot(int newDifferentialSlot)
Modifies this Control Request's DifferentialSlot parameter and returns itself for method-chaining and...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:275
constexpr DifferentialMotionMagicExpoDutyCycle & WithLimitReverseMotion(bool newLimitReverseMotion)
Modifies this Control Request's LimitReverseMotion parameter and returns itself for method-chaining a...
Definition DifferentialMotionMagicExpoDutyCycle.hpp:327
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14