![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: control_theory/pid.cpp
- Revision:
- 11:20418879650b
- Parent:
- 2:e7b09385d197
--- a/control_theory/pid.cpp Fri Jun 10 08:54:32 2022 +0000 +++ b/control_theory/pid.cpp Sat Jul 02 03:05:23 2022 +0000 @@ -35,4 +35,12 @@ void Pid::setMax(double get_max,double get_min){ max_val = get_max; minimum_val = get_min; +} + +void Pid::reset(){ + Give_P = 0; + Give_I = 0; + Give_D = 0; + e_o = 0; + e_c = 0; } \ No newline at end of file