aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@gar-ex-erdastep.localdomain>2011-11-25 20:26:10 +0100
committerroot <root@gar-ex-erdastep.localdomain>2011-11-25 20:26:10 +0100
commit57b6f6d5456983cb2e908e79859d8ed2b2d50f54 (patch)
treea5be94976e0fc5d208fd8b50c0c62c9a03c728df
parente50a424d35be245f6c52561b86c572348f72a006 (diff)
downloadPyPhytron-57b6f6d5456983cb2e908e79859d8ed2b2d50f54.tar.gz
PyPhytron-57b6f6d5456983cb2e908e79859d8ed2b2d50f54.tar.bz2
syncstart commands fixed
-rw-r--r--Phytron.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Phytron.py b/Phytron.py
index e9c720f..b038844 100644
--- a/Phytron.py
+++ b/Phytron.py
@@ -216,11 +216,11 @@ class Axis:
def initializeMinus(self):
return self.execute("GI-").status
- def syncstartCommence():
+ def syncstartCommence(self):
return self.execute("GW").status
- def syncstartExecute():
+ def syncstartExecute(self):
return self.execute("GX").status
- def syncstartAbort():
+ def syncstartAbort(self):
return self.execute("GB").status
def halt(self):
@@ -240,9 +240,9 @@ class Axis:
return float(self.execute("PA??").data)
def setBoostDuration(self, duration):
- return self.execute("PT%d" % int(duration * 1000)).status
+ return self.execute("PT%d" % int(duration * 1e3)).status
def getBoostDuration(self):
- return float(self.execute("PT?").data) * 0.0001
+ return float(self.execute("PT?").data) * 1e-3
def setHaltCurrent(self, current):
return self.execute("PS%1.1f" % current)