Package frc.robot.subsystems.Swerve
Class SwerveModule
java.lang.Object
frc.robot.subsystems.Swerve.SwerveModule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.ctre.phoenix6.StatusCode
getName()
edu.wpi.first.math.kinematics.SwerveModulePosition
edu.wpi.first.math.kinematics.SwerveModuleState
getState()
void
com.ctre.phoenix6.StatusCode
setTargetState
(edu.wpi.first.math.kinematics.SwerveModuleState state) com.ctre.phoenix6.StatusCode
setTargetState
(edu.wpi.first.math.kinematics.SwerveModuleState state, edu.wpi.first.units.measure.LinearAcceleration feedForward) void
-
Field Details
-
totalCurrentDraw
-
-
Constructor Details
-
SwerveModule
-
-
Method Details
-
configureAll
public com.ctre.phoenix6.StatusCode configureAll() -
setTargetState
public com.ctre.phoenix6.StatusCode setTargetState(edu.wpi.first.math.kinematics.SwerveModuleState state) -
setTargetState
public com.ctre.phoenix6.StatusCode setTargetState(edu.wpi.first.math.kinematics.SwerveModuleState state, edu.wpi.first.units.measure.LinearAcceleration feedForward) -
getState
public edu.wpi.first.math.kinematics.SwerveModuleState getState() -
getPosition
public edu.wpi.first.math.kinematics.SwerveModulePosition getPosition() -
resetEncoders
public void resetEncoders() -
getName
-
updateTelemetry
public void updateTelemetry()
-