pid: more sensible default parameters

This commit is contained in:
topquark12 2021-01-08 11:31:33 +08:00
parent 5c84b7438b
commit 1539b624bd

View File

@ -25,10 +25,10 @@ pub struct Parameters {
impl Default for Parameters { impl Default for Parameters {
fn default() -> Self { fn default() -> Self {
Parameters { Parameters {
kp: 1.5, kp: 0.0,
ki: 1.0, ki: 0.0,
kd: 1.5, kd: 0.0,
output_min: 0.0, output_min: -2.0,
output_max: 2.0, output_max: 2.0,
integral_min: -10.0, integral_min: -10.0,
integral_max: 10.0, integral_max: 10.0,