Class SwerveRequest.SysIdSwerveSteerGains
java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.SwerveRequest.SysIdSwerveSteerGains
- All Implemented Interfaces:
SwerveRequest
- Enclosing interface:
- SwerveRequest
public static class SwerveRequest.SysIdSwerveSteerGains extends Object implements SwerveRequest
SysId-specific SwerveRequest to characterize the steer module
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 SysIdSwerveSteerGains()
-
Method Summary
Modifier and Type Method Description StatusCode
apply(SwerveRequest.SwerveControlRequestParameters parameters, SwerveModule... modulesToApply)
Applies this swerve request to the given modules.SwerveRequest.SysIdSwerveSteerGains
withVolts(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:SwerveRequest
Applies this swerve request to the given modules. This is typically called by the SwerveDrivetrain.- Specified by:
apply
in 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
-