Skip to content

Commit

Permalink
drive arm to arm goal
Browse files Browse the repository at this point in the history
fixes #20
  • Loading branch information
FriedLongJohns committed Mar 6, 2024
1 parent 0bfc3eb commit 6b6abd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/carlmontrobotics/subsystems/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void autoCancelArmCommand() {
// #region Drive Methods
private void driveArm() {
setpoint = armProfile.calculate(kDt, setpoint, goalState);
double armFeedVolts = armFeed.calculate(getArmPos(), setpoint.velocity);
double armFeedVolts = armFeed.calculate(setpoint.position, setpoint.velocity);
if ((getArmPos() < LOWER_ANGLE_LIMIT_RAD)
|| (getArmPos() > UPPER_ANGLE_LIMIT_RAD)) {
armFeedVolts = armFeed.calculate(getArmPos(), 0);
Expand Down

0 comments on commit 6b6abd8

Please sign in to comment.