public class SettingUtils
extends java.lang.Object
| Constructor and Description |
|---|
SettingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initTalonPID(TalonSRX talon,
int slot,
double P,
double I,
double D,
double F,
double minOutput,
double maxOutput,
FeedbackDevice feedbackDevice,
double secondsFromNeutralToFull)
Initializes PID for a TalonSRX controller by setting the PID values, min/max output, the feedback device, and the ramp rate.
|
static void |
releaseController(PIDController controller)
Disables controller and releases its resources.
|
public static void releaseController(PIDController controller)
public static void initTalonPID(TalonSRX talon,
int slot,
double P,
double I,
double D,
double F,
double minOutput,
double maxOutput,
FeedbackDevice feedbackDevice,
double secondsFromNeutralToFull)
talon - The talon for which the control loop is used forslot - The slot for the PIDP - The proportional constant for PIDI - The integral constant for PIDD - The derivative constant for PIDF - The feed forward constant for PIDminOutput - The minimum output for PID [-1,1]maxOutput - The maximum ouptut for PID [-1,1]feedbackDevice - The type of feedback device (probably an encoder) that this motor controller is usingsecondsFromNeutralToFull - The ramp rate.