- PID: added set_param()
This commit is contained in:
@@ -22,10 +22,8 @@ class Pid:
|
|||||||
def scale(self, k):
|
def scale(self, k):
|
||||||
self.k = k
|
self.k = k
|
||||||
|
|
||||||
@staticmethod
|
def set_params(self, kp, ki, kd, kt):
|
||||||
def params(kp, ki, kd, kt):
|
self.params = dict(kp=kp, ki=ki, kd=kd, kt=kt)
|
||||||
p = dict(kp=kp, ki=ki, kd=kd, kt=kt)
|
|
||||||
return p
|
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
self.yi = 0
|
self.yi = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user