Class SwerveRequest.SysIdSwerveTranslation
java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.SwerveRequest.SysIdSwerveTranslation
- All Implemented Interfaces:
SwerveRequest
- Enclosing interface:
- SwerveRequest
public static class SwerveRequest.SysIdSwerveTranslation extends Object implements SwerveRequest
SysId-specific SwerveRequest to characterize the translational
characteristics of a swerve drivetrain.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ctre.phoenix6.mechanisms.swerve.SwerveRequest
SwerveRequest.ApplyChassisSpeeds, SwerveRequest.FieldCentric, SwerveRequest.FieldCentricFacingAngle, SwerveRequest.ForwardReference, SwerveRequest.Idle, SwerveRequest.PointWheelsAt, SwerveRequest.RobotCentric, SwerveRequest.SwerveControlRequestParameters, SwerveRequest.SwerveDriveBrake, SwerveRequest.SysIdSwerveRotation, SwerveRequest.SysIdSwerveSteerGains, SwerveRequest.SysIdSwerveTranslation -
Field Summary
Fields Modifier and Type Field Description MutableMeasure<Voltage>VoltsToApply -
Constructor Summary
Constructors Constructor Description SysIdSwerveTranslation() -
Method Summary
Modifier and Type Method Description StatusCodeapply(SwerveRequest.SwerveControlRequestParameters parameters, SwerveModule... modulesToApply)Applies this swerve request to the given modules.SwerveRequest.SysIdSwerveTranslationwithVolts(Measure<Voltage> Volts)Update the voltage to apply to the drive wheels.
-
Field Details
-
Constructor Details
-
Method Details
-
apply
public StatusCode apply(SwerveRequest.SwerveControlRequestParameters parameters, SwerveModule... modulesToApply)Description copied from interface:SwerveRequestApplies this swerve request to the given modules. This is typically called by the SwerveDrivetrain.- Specified by:
applyin interfaceSwerveRequest- Parameters:
parameters- Parameters the control request needs to calculate the module statemodulesToApply- Modules to which the control request is applied- Returns:
- Status code of sending the request
-
withVolts
Update the voltage to apply to the drive wheels.- Parameters:
Volts- Voltage to apply- Returns:
- this request
-