From 5ba5beb0c022fbbdca600e253022a1b004f77f7d Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 20 Dec 2021 14:32:10 -0500 Subject: pid has setters and getters --- qolab/feedback/__init__.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qolab/feedback/__init__.py b/qolab/feedback/__init__.py index de58d13..af165e7 100644 --- a/qolab/feedback/__init__.py +++ b/qolab/feedback/__init__.py @@ -8,6 +8,31 @@ class PID: self.sign = sign self.reset() + + def getGp(self): + return self.Gp + + def setGp(self,val): + self.Gp=val + + def getGi(self): + return self.Gi + + def setGi(self,val): + self.Gi=val + + def getGd(self): + return self.Gd + + def setGd(self,val): + self.Gd=val + + def getSign(self): + return self.sign + + def setSign(self,val): + self.sign=val + def reset(self): self.err_1dt_back = 0 -- cgit v1.2.3