[wpilib] Require non-zero positive value for PIDController.period (#3175)

This commit is contained in:
Starlight220
2021-02-17 04:07:29 +02:00
committed by GitHub
parent 9522f2e8c7
commit 959611420b
3 changed files with 12 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class PIDController : public frc::Sendable,
* @param Ki The integral coefficient.
* @param Kd The derivative coefficient.
* @param period The period between controller updates in seconds. The
* default is 20 milliseconds.
* default is 20 milliseconds. Must be non-zero and positive.
*/
PIDController(double Kp, double Ki, double Kd,
units::second_t period = 20_ms);