TalonFXConfiguration config = new TalonFXConfiguration();
config.MotorOutput.Inverted = InvertedValue.CounterClockwise_Positive;
- config.Slot0.kP = 12.0;
- config.Slot0.kS = 0.1; // Static friction compensation
- config.Slot0.kV = 0.12; // Adjusted kV for the gear ratio
+ config.Slot0.kP = 1.5;
+ config.Slot0.kS = 0.0; // Static friction compensation
+ config.Slot0.kV = 0.0; // Adjusted kV for the gear ratio
config.Slot0.kD = 0.0; // The "Braking" term to stop overshoot
+ config.Slot0.kA = 0.0;
var mm = config.MotionMagic;
mm.MotionMagicCruiseVelocity = Units.radiansToRotations(TurretConstants.MAX_VELOCITY) * TurretConstants.GEAR_RATIO;
public static final double EXTRAPOLATION_TIME_CONSTANT = 0.06;
- public static final double FEEDFORWARD_KV = 0.06;
+ public static final double FEEDFORWARD_KV = 0.02
+ ;
public static final double NORMAL_CURRENT_LIMIT = 40.0; // A
public static final double CALIBRATION_CURRENT_LIMIT = 10.0; // A