Package frc.robot.systems.drive
Record Class DriveConstants.ModuleControlConfig
java.lang.Object
java.lang.Record
frc.robot.systems.drive.DriveConstants.ModuleControlConfig
- Enclosing class:
- DriveConstants
public static record DriveConstants.ModuleControlConfig(edu.wpi.first.math.controller.PIDController driveController, edu.wpi.first.math.controller.SimpleMotorFeedforward driveFF, edu.wpi.first.math.controller.PIDController azimuthController, edu.wpi.first.math.controller.SimpleMotorFeedforward azimuthFF)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionModuleControlConfig(edu.wpi.first.math.controller.PIDController driveController, edu.wpi.first.math.controller.SimpleMotorFeedforward driveFF, edu.wpi.first.math.controller.PIDController azimuthController, edu.wpi.first.math.controller.SimpleMotorFeedforward azimuthFF) Creates an instance of aModuleControlConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.math.controller.PIDControllerReturns the value of theazimuthControllerrecord component.edu.wpi.first.math.controller.SimpleMotorFeedforwardReturns the value of theazimuthFFrecord component.edu.wpi.first.math.controller.PIDControllerReturns the value of thedriveControllerrecord component.edu.wpi.first.math.controller.SimpleMotorFeedforwarddriveFF()Returns the value of thedriveFFrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleControlConfig
public ModuleControlConfig(edu.wpi.first.math.controller.PIDController driveController, edu.wpi.first.math.controller.SimpleMotorFeedforward driveFF, edu.wpi.first.math.controller.PIDController azimuthController, edu.wpi.first.math.controller.SimpleMotorFeedforward azimuthFF) Creates an instance of aModuleControlConfigrecord class.- Parameters:
driveController- the value for thedriveControllerrecord componentdriveFF- the value for thedriveFFrecord componentazimuthController- the value for theazimuthControllerrecord componentazimuthFF- the value for theazimuthFFrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
driveController
public edu.wpi.first.math.controller.PIDController driveController()Returns the value of thedriveControllerrecord component.- Returns:
- the value of the
driveControllerrecord component
-
driveFF
public edu.wpi.first.math.controller.SimpleMotorFeedforward driveFF()Returns the value of thedriveFFrecord component.- Returns:
- the value of the
driveFFrecord component
-
azimuthController
public edu.wpi.first.math.controller.PIDController azimuthController()Returns the value of theazimuthControllerrecord component.- Returns:
- the value of the
azimuthControllerrecord component
-
azimuthFF
public edu.wpi.first.math.controller.SimpleMotorFeedforward azimuthFF()Returns the value of theazimuthFFrecord component.- Returns:
- the value of the
azimuthFFrecord component
-