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

Commit

Permalink
idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
carokhan committed Oct 24, 2024
1 parent 8366522 commit 5f6203d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/frc/robot/subsystems/pivot2/Pivot.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ public Command setPivotTarget(DoubleSupplier radians) {
return this.run(
() -> {
double volts =
pivotPID.calculate(
inputs.pivotPosition.getRadians(),
radians.getAsDouble()
+ pivotFF.calculate(
pivotPID.getSetpoint().position, pivotPID.getSetpoint().velocity));
pivotPID.calculate(inputs.pivotPosition.getRadians(), radians.getAsDouble())
+ pivotFF.calculate(
pivotPID.getSetpoint().position, pivotPID.getSetpoint().velocity);

io.setPivotVoltage(volts);
inputs.pivotAppliedVolts = volts;
Expand Down

0 comments on commit 5f6203d

Please sign in to comment.