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
Bliss
bliss
Commits
ccc29d59
Commit
ccc29d59
authored
Jul 07, 2021
by
bliss administrator
Committed by
Matias Guijarro
Jul 08, 2021
Browse files
micos: add __info__ and get_axis_info
parent
6411ba66
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/controllers/motors/micos.py
View file @
ccc29d59
...
...
@@ -291,6 +291,14 @@ class micos(Controller):
# self._micos_state.create_state("IN_CLOSED_LOOP_WINDOW","In Closed-loop Window")
# TODO: see if some other special state should be created here
def
__info__
(
self
):
info
=
"MICOS CONTROLLER:
\n
"
info
+=
f
" comm:
{
self
.
serial
}
\n
"
return
info
def
get_axis_info
(
self
,
axis
):
return
f
" controller:
{
self
.
get_id
(
axis
)
}
\n
"
def
initialize_encoder
(
self
,
encoder
):
if
encoder
.
name
not
in
self
.
_micos_enc
.
keys
():
number
=
encoder
.
config
.
get
(
"number"
,
int
,
None
)
...
...
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