From 1539b624bd957d7020a051b77c6534cac2553899 Mon Sep 17 00:00:00 2001 From: topquark12 Date: Fri, 8 Jan 2021 11:31:33 +0800 Subject: [PATCH] pid: more sensible default parameters --- src/pid.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pid.rs b/src/pid.rs index 9da0246..74ba37f 100644 --- a/src/pid.rs +++ b/src/pid.rs @@ -25,10 +25,10 @@ pub struct Parameters { impl Default for Parameters { fn default() -> Self { Parameters { - kp: 1.5, - ki: 1.0, - kd: 1.5, - output_min: 0.0, + kp: 0.0, + ki: 0.0, + kd: 0.0, + output_min: -2.0, output_max: 2.0, integral_min: -10.0, integral_max: 10.0,