Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
fix(swerve): Configure hardware.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Jan 11, 2024
1 parent eac9c45 commit 4b528c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/frc/robot/swerve/SwerveModuleIOCustom.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ public class SwerveModuleIOCustom implements SwerveModuleIO {
*/
public SwerveModuleIOCustom(SwerveModuleConfig config) {
azimuthEncoder = SwerveFactory.createAzimuthEncoder(config);
azimuthEncoder.configure();

steerMotor = SwerveFactory.createSteerMotor();
steerMotor.configure();

driveMotor = SwerveFactory.createDriveMotor(config);
driveMotor.configure();

azimuthEncoder.update(azimuthEncoderValues);
steerMotor.setPosition(azimuthEncoderValues.angleRotations);
Expand Down

0 comments on commit 4b528c5

Please sign in to comment.