diff --git a/wpilibc/shared/include/PIDController.h b/wpilibc/shared/include/PIDController.h index b3a6496bd9..01b1243759 100644 --- a/wpilibc/shared/include/PIDController.h +++ b/wpilibc/shared/include/PIDController.h @@ -28,6 +28,10 @@ class PIDOutput; * * Creates a separate thread which reads the given PIDSource and takes * care of the integral calculations, as well as writing the given PIDOutput. + * + * This feedback controller runs in discrete time, so time deltas are not used + * in the integral and derivative calculations. Therefore, the sample rate + * affects the controller's behavior for a given set of PID constants. */ class PIDController : public LiveWindowSendable, public PIDInterface, diff --git a/wpilibj/src/shared/java/edu/wpi/first/wpilibj/PIDController.java b/wpilibj/src/shared/java/edu/wpi/first/wpilibj/PIDController.java index f3443c8555..e7b5e436fe 100644 --- a/wpilibj/src/shared/java/edu/wpi/first/wpilibj/PIDController.java +++ b/wpilibj/src/shared/java/edu/wpi/first/wpilibj/PIDController.java @@ -19,7 +19,11 @@ import edu.wpi.first.wpilibj.util.BoundaryException; * Class implements a PID Control Loop. * *

Creates a separate thread which reads the given PIDSource and takes care of the integral - * calculations, as well as writing the given PIDOutput + * calculations, as well as writing the given PIDOutput. + * + *

This feedback controller runs in discrete time, so time deltas are not used in the integral + * and derivative calculations. Therefore, the sample rate affects the controller's behavior for a + * given set of PID constants. */ public class PIDController implements PIDInterface, LiveWindowSendable, Controller {