- 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:
2019-04-04 05:24:02 +00:00
parent c036487faa
commit 8b1f36098c
3 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -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