Skip to content

Commit

Permalink
armpid stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiebudman committed Mar 3, 2024
1 parent 9dc6e76 commit 1ac6c55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/carlmontrobotics/subsystems/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public void driveArm(double goalAngle){
armFeedVolts = armFeed.calculate(getCurrentArmGoal().position, 0);
}
armPID1.setReference(setPoint.position, CANSparkBase.ControlType.kVelocity, 0, armFeedVolts);
armPID2.setReference(setPoint.position, CANSparkBase.ControlType.kVelocity, 0, armFeedVolts);
}

public void setArmTarget(double targetPos) {
Expand Down

0 comments on commit 1ac6c55

Please sign in to comment.