Skip to content

Commit

Permalink
Wait before initializing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
viggy96 committed Dec 13, 2023
1 parent 655bc8c commit 87d70f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/lasarobotics/drive/MAXSwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ public MAXSwerveModule(Hardware swerveHardware, ModuleLocation location, GearRat
this.m_simRotatePosition = 0.0;
this.m_tractionControlController = new TractionControlController(slipRatio, DRIVE_MAX_LINEAR_SPEED);

// Wait for 2 seconds before proceeding...
GlobalConstants.wait(2.0);

// Reset motor controllers
m_driveMotor.restoreFactoryDefaults();
m_rotateMotor.restoreFactoryDefaults();
Expand Down

0 comments on commit 87d70f0

Please sign in to comment.