/* Drive Motor PID Values */
public static final double[] P_VALUES = {
- 0.1,
- 0.1,
- 0.1,
- 0.1
+ 0.3,
+ 0.3,
+ 0.3,
+ 0.3
};
public static final double[] I_VALUES = {
0,
// Open loop prevents throttle from changing too quickly.
// It will limit it to time given (in seconds) to go from zero to full throttle.
// A small open loop ramp (0.25) helps with tread wear, tipping, etc
- public static final double OPEN_LOOP_RAMP = 0.25;
+ public static final double OPEN_LOOP_RAMP = 0.1;
public static final double WHEEL_CIRCUMFERENCE = 2*Math.PI*WHEEL_RADIUS;
updateInputs();
TalonFXConfiguration config = new TalonFXConfiguration();
- config.Slot0.kP = 1.0; //tune p value
+ config.Slot0.kP = 0.5; //0.5 to stop fighting
config.Slot0.kI = 0;
config.Slot0.kD = 0.0;
config.Slot0.kV = 0.125; //Maximum rps = 100 --> 12V/100rps