Commit 44ce8d23 authored by electrolab's avatar electrolab

Fix homing pulse length which was too short

parent 7464eafa
......@@ -3587,6 +3587,7 @@ class gmoccapy(object):
#self.command.home(-1)
# Maurice homing
self.halcomp["joint.all.home"] = 1
sleep(0.5)
self.halcomp["joint.all.home"] = 0
def _on_btn_unhome_clicked(self, widget):
......@@ -3614,11 +3615,12 @@ class gmoccapy(object):
self._set_motion_mode(0)
#self.command.home(joint_or_axis)
# Maurice homing
if joint_axis == -1:
if joint_or_axis == -1:
home_pin = "joint.all.home"
else:
home_pin = "joint.%d.home" % (joint_axis)
home_pin = "joint.%d.home" % (joint_or_axis)
self.halcomp[home_pin] = 1
sleep(0.5)
self.halcomp[home_pin] = 0
def _unhome_signal(self, object, joint):
......@@ -5219,3 +5221,4 @@ if __name__ == "__main__":
gtk.main()
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