Skip to content

Commit

Permalink
Use targetRelativeDegrees instead of targetDegrees in setPosition. (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownGenius authored Mar 22, 2024
1 parent 009ed8c commit 9574bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/arm/ArmSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void setAngle(double degrees) {
Logger.recordOutput("Arm/setAngle/ffVolts", ff);

// Set the position reference with feedforward voltage
io.setPosition(this.targetDegrees, ff);
io.setPosition(this.targetRelativeDegrees, ff);
}

@Override
Expand Down

0 comments on commit 9574bdd

Please sign in to comment.