Package swervelib.parser
Class PIDFConfig
java.lang.Object
swervelib.parser.PIDFConfig
Hold the PIDF and Integral Zone values for a PID.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUsed when parsing PIDF values from JSON.PIDFConfig
(double p, double d) PIDF Config constructor to contain the values.PIDFConfig
(double p, double i, double d) PIDF Config constructor to contain the values.PIDFConfig
(double p, double i, double d, double f) PIDF Config constructor to contain the values.PIDFConfig
(double p, double i, double d, double f, double iz) PIDF Config constructor to contain the values. -
Method Summary
Modifier and TypeMethodDescriptionCreate a PIDController from the PID values.
-
Field Details
-
p
public double pProportional Gain for PID. -
i
public double iIntegral Gain for PID. -
d
public double dDerivative Gain for PID. -
f
public double fFeedforward value for PID. -
iz
public double izIntegral zone of the PID. -
output
The PIDF output range.
-
-
Constructor Details
-
PIDFConfig
public PIDFConfig()Used when parsing PIDF values from JSON. -
PIDFConfig
public PIDFConfig(double p, double i, double d, double f, double iz) PIDF Config constructor to contain the values.- Parameters:
p
- P gain.i
- I gain.d
- D gain.f
- F gain.iz
- Intergral zone.
-
PIDFConfig
public PIDFConfig(double p, double i, double d, double f) PIDF Config constructor to contain the values.- Parameters:
p
- P gain.i
- I gain.d
- D gain.f
- F gain.
-
PIDFConfig
public PIDFConfig(double p, double i, double d) PIDF Config constructor to contain the values.- Parameters:
p
- P gain.i
- I gain.d
- D gain.
-
PIDFConfig
public PIDFConfig(double p, double d) PIDF Config constructor to contain the values.- Parameters:
p
- P gain.d
- D gain.
-
-
Method Details
-
createPIDController
Create a PIDController from the PID values.- Returns:
- PIDController.
-