Skip to content

Commit

Permalink
fix: shooter uses gravity feedforward correctly (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimizh2418 authored Feb 3, 2024
1 parent 48618e7 commit ba9104f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public ShooterPivotIOTalonFX() {
motorConfig.Slot0.kS = KS;
motorConfig.Slot0.kG = KG;
motorConfig.Slot0.kV = KV;
motorConfig.Slot0.GravityType = GravityTypeValue.Arm_Cosine;

motorConfig.MotionMagic.MotionMagicCruiseVelocity = CRUISE_VELOCITY_RPS;
motorConfig.MotionMagic.MotionMagicAcceleration = MAX_ACCEL_RPS2;
Expand Down

0 comments on commit ba9104f

Please sign in to comment.