pid: partial -> proportional

This commit is contained in:
Sebastien Bourdeauducq 2020-12-26 11:01:40 +08:00
parent 9852b32646
commit 50a1b9f52d
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ impl Controller {
// error
let error = input - self.target;
// partial
// proportional
let p = f64::from(self.parameters.kp) * error;
// integral