pid: partial -> proportional
This commit is contained in:
parent
9852b32646
commit
50a1b9f52d
@ -62,7 +62,7 @@ impl Controller {
|
|||||||
// error
|
// error
|
||||||
let error = input - self.target;
|
let error = input - self.target;
|
||||||
|
|
||||||
// partial
|
// proportional
|
||||||
let p = f64::from(self.parameters.kp) * error;
|
let p = f64::from(self.parameters.kp) * error;
|
||||||
|
|
||||||
// integral
|
// integral
|
||||||
|
Loading…
Reference in New Issue
Block a user