Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
fee48fd7
Commit
fee48fd7
authored
Apr 26, 2021
by
bliss administrator
Committed by
Matias Guijarro
Jul 08, 2021
Browse files
micos: add new config parameter "home_position" to reset the position to a new reference
parent
843f98e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/controllers/motors/micos.py
View file @
fee48fd7
...
...
@@ -599,6 +599,9 @@ class micos(Controller):
# if clwintime == None:
# axis.axis_settings.add("cloop_wintime",float)
# Get the home position if any
axis
.
home_position
=
axis
.
config
.
get
(
"home_position"
,
float
,
None
)
def
initialize_hardware_axis
(
self
,
axis
):
"""
This function serves for the HARDWARE INITIALIZION of an axis.
...
...
@@ -2960,13 +2963,9 @@ class micos(Controller):
# the controller position value.
axis
.
sync_hard
()
# set user position to be equal to the offset
# axis.position = current_offset
# axis.position = -120.0
axis
.
position
=
-
122.0
# set endswitch types to 2 since reset_axis() sets them to 1
# _ans = self._set_endswitch_types(axis,2,2)
# Apply a home position if any
if
axis
.
home_position
is
not
None
:
axis
.
position
=
axis
.
home_position
# Restore the velocity for moving to the reference position
# to the value as was found in the configuration
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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