CTRE Phoenix 6 C++ 25.2.1
|
Sets the swerve drive modules to point to a specified direction. 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. | |
PointWheelsAt & | WithModuleDirection (Rotation2d newModuleDirection) & |
Modifies the ModuleDirection parameter and returns itself. | |
PointWheelsAt && | WithModuleDirection (Rotation2d newModuleDirection) && |
Modifies the ModuleDirection parameter and returns itself. | |
PointWheelsAt & | WithDriveRequestType (impl::DriveRequestType newDriveRequestType) & |
Modifies the DriveRequestType parameter and returns itself. | |
PointWheelsAt && | WithDriveRequestType (impl::DriveRequestType newDriveRequestType) && |
Modifies the DriveRequestType parameter and returns itself. | |
PointWheelsAt & | WithSteerRequestType (impl::SteerRequestType newSteerRequestType) & |
Modifies the SteerRequestType parameter and returns itself. | |
PointWheelsAt && | WithSteerRequestType (impl::SteerRequestType newSteerRequestType) && |
Modifies the SteerRequestType parameter and returns itself. | |
![]() | |
virtual | ~SwerveRequest ()=default |
Public Attributes | |
Rotation2d | ModuleDirection {} |
The direction to point the modules toward. | |
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 modules to point to a specified direction.
|
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 ModuleDirection parameter and returns itself.
The direction to point the modules toward. This direction is still optimized to what the module was previously at.
newModuleDirection | Parameter to modify |
|
inline |
Modifies the ModuleDirection parameter and returns itself.
The direction to point the modules toward. This direction is still optimized to what the module was previously at.
newModuleDirection | 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::PointWheelsAt::DriveRequestType = impl::DriveRequestType::OpenLoopVoltage |
The type of control request to use for the drive motor.
Rotation2d ctre::phoenix6::swerve::requests::PointWheelsAt::ModuleDirection {} |
The direction to point the modules toward.
This direction is still optimized to what the module was previously at.
impl::SteerRequestType ctre::phoenix6::swerve::requests::PointWheelsAt::SteerRequestType = impl::SteerRequestType::Position |
The type of control request to use for the steer motor.