Class LegacySwerveRequest.SysIdSwerveSteerGains
java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.LegacySwerveRequest.SysIdSwerveSteerGains
- All Implemented Interfaces:
LegacySwerveRequest
- Enclosing interface:
- LegacySwerveRequest
public static class LegacySwerveRequest.SysIdSwerveSteerGains
extends Object
implements LegacySwerveRequest
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.LegacySwerveRequest
LegacySwerveRequest.ApplyChassisSpeeds, LegacySwerveRequest.FieldCentric, LegacySwerveRequest.FieldCentricFacingAngle, LegacySwerveRequest.ForwardReference, LegacySwerveRequest.Idle, LegacySwerveRequest.LegacySwerveControlRequestParameters, LegacySwerveRequest.PointWheelsAt, LegacySwerveRequest.RobotCentric, LegacySwerveRequest.SwerveDriveBrake, LegacySwerveRequest.SysIdSwerveRotation, LegacySwerveRequest.SysIdSwerveSteerGains, LegacySwerveRequest.SysIdSwerveTranslation -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(LegacySwerveRequest.LegacySwerveControlRequestParameters parameters, LegacySwerveModule... modulesToApply) Applies this swerve request to the given modules.Sets the voltage to apply to the steer motors.
-
Field Details
-
VoltsToApply
Voltage to apply to steer motors. This is final to enforce mutating the value.
-
-
Constructor Details
-
SysIdSwerveSteerGains
public SysIdSwerveSteerGains()
-
-
Method Details
-
apply
public StatusCode apply(LegacySwerveRequest.LegacySwerveControlRequestParameters parameters, LegacySwerveModule... modulesToApply) Description copied from interface:LegacySwerveRequestApplies this swerve request to the given modules. This is typically called by the SwerveDrivetrain.- Specified by:
applyin interfaceLegacySwerveRequest- 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
Sets the voltage to apply to the steer motors.- Parameters:
volts- Voltage to apply- Returns:
- this request
-