- Controller: read back power
- Mass: do power quantization - pid has extra optional dErr parameter git-svn-id: http://moon:8086/svn/projects/HendiControl@224 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -36,7 +36,8 @@ class Mass(APlant):
|
||||
self.theta = self.e/(self.M*self.C)
|
||||
|
||||
def setPower(self, power_w):
|
||||
self.P = power_w
|
||||
k = int(power_w / 100 +0.5)
|
||||
self.P = k * 100
|
||||
|
||||
def getPower(self):
|
||||
return self.P
|
||||
|
||||
Reference in New Issue
Block a user