Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ID11
id11
Commits
28b188fc
Commit
28b188fc
authored
Mar 10, 2020
by
Emmanuel Papillon
Browse files
debug in motutils : use steps_per_unit sign
parent
5c0c50dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
id11/motutils.py
View file @
28b188fc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment