CTRE Phoenix 6 C++ 25.2.1
|
Sets the swerve drive module states to point inward on the robot in an "X" fashion, creating a natural brake which will oppose any motion. More...
#include <ctre/phoenix6/swerve/SwerveRequest.hpp>
Public Member Functions | |
ctre::phoenix::StatusCode | Apply (SwerveRequest::ControlParameters const ¶meters, std::vector< std::unique_ptr< impl::SwerveModuleImpl > > const &modulesToApply) override |
Applies this swerve request to the given modules. | |
SwerveDriveBrake & | WithDriveRequestType (impl::DriveRequestType newDriveRequestType) & |
Modifies the DriveRequestType parameter and returns itself. | |
SwerveDriveBrake && | WithDriveRequestType (impl::DriveRequestType newDriveRequestType) && |
Modifies the DriveRequestType parameter and returns itself. | |
SwerveDriveBrake & | WithSteerRequestType (impl::SteerRequestType newSteerRequestType) & |
Modifies the SteerRequestType parameter and returns itself. | |
SwerveDriveBrake && | WithSteerRequestType (impl::SteerRequestType newSteerRequestType) && |
Modifies the SteerRequestType parameter and returns itself. | |
![]() | |
virtual | ~SwerveRequest ()=default |
Public Attributes | |
impl::DriveRequestType | DriveRequestType = impl::DriveRequestType::OpenLoopVoltage |
The type of control request to use for the drive motor. | |
impl::SteerRequestType | SteerRequestType = impl::SteerRequestType::Position |
The type of control request to use for the steer motor. | |
Additional Inherited Members | |
![]() | |
using | ControlParameters = impl::SwerveDrivetrainImpl::ControlParameters |
Sets the swerve drive module states to point inward on the robot in an "X" fashion, creating a natural brake which will oppose any motion.
|
inlineoverridevirtual |
Applies this swerve request to the given modules.
This is typically called by the SwerveDrivetrain.
parameters | Parameters the control request needs to calculate the module state |
modulesToApply | Modules to which the control request is applied |
Implements ctre::phoenix6::swerve::requests::SwerveRequest.
|
inline |
Modifies the DriveRequestType parameter and returns itself.
The type of control request to use for the drive motor.
newDriveRequestType | Parameter to modify |
|
inline |
Modifies the DriveRequestType parameter and returns itself.
The type of control request to use for the drive motor.
newDriveRequestType | Parameter to modify |
|
inline |
Modifies the SteerRequestType parameter and returns itself.
The type of control request to use for the steer motor.
newSteerRequestType | Parameter to modify |
|
inline |
Modifies the SteerRequestType parameter and returns itself.
The type of control request to use for the steer motor.
newSteerRequestType | Parameter to modify |
impl::DriveRequestType ctre::phoenix6::swerve::requests::SwerveDriveBrake::DriveRequestType = impl::DriveRequestType::OpenLoopVoltage |
The type of control request to use for the drive motor.
impl::SteerRequestType ctre::phoenix6::swerve::requests::SwerveDriveBrake::SteerRequestType = impl::SteerRequestType::Position |
The type of control request to use for the steer motor.