From 7361619a5371fb533bd0069cc52ae8a89a28b5c8 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 18 Sep 2020 00:41:32 +0200 Subject: [PATCH] pid: update default parameters --- src/pid.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pid.rs b/src/pid.rs index 83878d8..7e1d02d 100644 --- a/src/pid.rs +++ b/src/pid.rs @@ -12,13 +12,13 @@ pub struct Parameters { impl Default for Parameters { fn default() -> Self { Parameters { - kp: 0.5, - ki: 0.05, - kd: 0.45, + kp: 1.5, + ki: 0.1, + kd: 150.0, output_min: 0.0, - output_max: 5.0, - integral_min: 0.0, - integral_max: 1.0, + output_max: 2.0, + integral_min: -10.0, + integral_max: 10.0, } } }