From 50a1b9f52d6c148c8896d33c3e2c797d9b9d2f09 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 26 Dec 2020 11:01:40 +0800 Subject: [PATCH] pid: partial -> proportional --- src/pid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pid.rs b/src/pid.rs index 850bf6b..996c538 100644 --- a/src/pid.rs +++ b/src/pid.rs @@ -62,7 +62,7 @@ impl Controller { // error let error = input - self.target; - // partial + // proportional let p = f64::from(self.parameters.kp) * error; // integral