Commit f3765443 authored by Antonia Beteva's avatar Antonia Beteva

Merge branch 'icepap_rounding' into 'master'

Icepap rounding

See merge request !1095
parents 3074d602 d3b0d92d
Pipeline #8431 passed with stages
in 19 minutes and 23 seconds
......@@ -293,14 +293,16 @@ class Icepap(Controller):
_ackcommand(
self._cnx,
"MOVE %s %d" % (motion.axis.address, motion.target_pos),
"MOVE %s %d" % (motion.axis.address, (motion.target_pos + 0.5)),
pre_cmd=pre_cmd,
)
def start_all(self, *motions):
if len(motions) > 1:
cmd = "MOVE GROUP "
cmd += " ".join(["%s %d" % (m.axis.address, m.target_pos) for m in motions])
cmd += " ".join(
["%s %d" % (m.axis.address, (m.target_pos + 0.5)) for m in motions]
)
_ackcommand(self._cnx, cmd)
elif motions:
self.start_one(motions[0])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment