GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 28b188fc authored by Emmanuel Papillon's avatar Emmanuel Papillon

debug in motutils : use steps_per_unit sign

parent 5c0c50dd
......@@ -71,7 +71,7 @@ def mot_findref(axis):
ref_pos = axis.home_found_dial()
elif refcfg["search"] == "HOME":
dial_pos = axis.dial
if dial_pos - refcfg["dial"] > 0:
if (dial_pos - refcfg["dial"])> 0 and (axis.steps_per_unit > 0):
home_dir = -1
else:
home_dir = 1
......
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