- added activate()

git-svn-id: http://moon:8086/svn/projects/HendiControl@222 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-04-03 19:35:45 +00:00
parent 3116a18c90
commit f8b1a9ab8c
+3
View File
@@ -26,6 +26,9 @@ class Mass(APlant):
if self.Td > 0:
self.alpha = self.dt/self.Td
def activate(self, enable):
pass
def process(self):
self.e = self.e*(1 - ((self.L*self.theta)*self.dt)/(self.M*self.C))
self.x = (1-self.alpha)*self.x + self.gain*self.alpha*self.P