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

Commit

Permalink
Add current limit
Browse files Browse the repository at this point in the history
  • Loading branch information
JelloSmello committed Aug 26, 2023
1 parent 4c9d5f9 commit ed3a4ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/shoulder/ShoulderSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public ShoulderSubsystem(CANSparkMax motor, CANSparkMax motorFollower) {
motorFollower.follow(motor);
encoder = motor.getEncoder();
pid = motor.getPIDController();
motor.setSmartCurrentLimit(35);
motorFollower.setSmartCurrentLimit(35);

pid.setP(5);
pid.setI(0);
Expand Down

0 comments on commit ed3a4ab

Please sign in to comment.