Skip to content

Commit

Permalink
fix: shooter uses gravity feedforward correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mimizh2418 committed Feb 3, 2024
1 parent 48618e7 commit d2cdaf0
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 d2cdaf0

Please sign in to comment.