Skip to content

Commit ba9104f

Browse files
authored
fix: shooter uses gravity feedforward correctly (#22)
1 parent 48618e7 commit ba9104f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/team1540/robot2024/subsystems/shooter/ShooterPivotIOTalonFX.java

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public ShooterPivotIOTalonFX() {
5050
motorConfig.Slot0.kS = KS;
5151
motorConfig.Slot0.kG = KG;
5252
motorConfig.Slot0.kV = KV;
53+
motorConfig.Slot0.GravityType = GravityTypeValue.Arm_Cosine;
5354

5455
motorConfig.MotionMagic.MotionMagicCruiseVelocity = CRUISE_VELOCITY_RPS;
5556
motorConfig.MotionMagic.MotionMagicAcceleration = MAX_ACCEL_RPS2;

0 commit comments

Comments
 (0)