diff options
author | root <root@gar-ex-erdastep.localdomain> | 2011-11-25 20:26:10 +0100 |
---|---|---|
committer | root <root@gar-ex-erdastep.localdomain> | 2011-11-25 20:26:10 +0100 |
commit | 57b6f6d5456983cb2e908e79859d8ed2b2d50f54 (patch) | |
tree | a5be94976e0fc5d208fd8b50c0c62c9a03c728df | |
parent | e50a424d35be245f6c52561b86c572348f72a006 (diff) | |
download | PyPhytron-57b6f6d5456983cb2e908e79859d8ed2b2d50f54.tar.gz PyPhytron-57b6f6d5456983cb2e908e79859d8ed2b2d50f54.tar.bz2 |
syncstart commands fixed
-rw-r--r-- | Phytron.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |