CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
ctre::phoenix6::swerve::requests::SwerveRequest Class Referenceabstract

Container for all the Swerve Requests. More...

#include <ctre/phoenix6/swerve/SwerveRequest.hpp>

Inheritance diagram for ctre::phoenix6::swerve::requests::SwerveRequest:
ctre::phoenix6::swerve::requests::ApplyFieldSpeeds ctre::phoenix6::swerve::requests::ApplyRobotSpeeds ctre::phoenix6::swerve::requests::FieldCentric ctre::phoenix6::swerve::requests::FieldCentricFacingAngle ctre::phoenix6::swerve::requests::Idle ctre::phoenix6::swerve::requests::PointWheelsAt ctre::phoenix6::swerve::requests::RobotCentric ctre::phoenix6::swerve::requests::SwerveDriveBrake ctre::phoenix6::swerve::requests::SysIdSwerveRotation ctre::phoenix6::swerve::requests::SysIdSwerveSteerGains ctre::phoenix6::swerve::requests::SysIdSwerveTranslation

Public Types

using ControlParameters = impl::SwerveDrivetrainImpl::ControlParameters
 

Public Member Functions

virtual ~SwerveRequest ()=default
 
virtual ctre::phoenix::StatusCode Apply (ControlParameters const &parameters, std::vector< std::unique_ptr< impl::SwerveModuleImpl > > const &modulesToApply)=0
 Applies this swerve request to the given modules.
 

Detailed Description

Container for all the Swerve Requests.

Use this to find all applicable swerve drive requests.

This is also an interface common to all swerve drive control requests that allow the request to calculate the state to apply to the modules.

Member Typedef Documentation

◆ ControlParameters

Constructor & Destructor Documentation

◆ ~SwerveRequest()

virtual ctre::phoenix6::swerve::requests::SwerveRequest::~SwerveRequest ( )
virtualdefault

Member Function Documentation

◆ Apply()

virtual ctre::phoenix::StatusCode ctre::phoenix6::swerve::requests::SwerveRequest::Apply ( ControlParameters const & parameters,
std::vector< std::unique_ptr< impl::SwerveModuleImpl > > const & modulesToApply )
pure virtual

The documentation for this class was generated from the following file: