Class SwerveRequest.SysIdSwerveSteerGains

java.lang.Object
com.ctre.phoenix6.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.
  • Field Details

    • VoltsToApply

      public double VoltsToApply
      Voltage to apply to steer motors.
  • Constructor Details

  • Method Details

    • apply

      public StatusCode apply(SwerveDrivetrain.SwerveControlParameters parameters, SwerveModule<?,?,?>... modulesToApply)
      Description copied from interface: SwerveRequest
      Applies this swerve request to the given modules. This is typically called by the SwerveDrivetrain odometry thread.

      For native swerve requests, this API can be called from a non-native request's apply to compose the two together.

      Specified by:
      apply in interface SwerveRequest
      Parameters:
      parameters - Parameters the control request needs to calculate the module state
      modulesToApply - 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
    • withVolts

      Sets the voltage to apply to the steer motors.
      Parameters:
      volts - Voltage to apply
      Returns:
      this request