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
2e44b292
Commit
2e44b292
authored
Nov 06, 2020
by
Sebastien Petitdemange
Browse files
axis: added a configuration option to not check discrepancy.
parent
00ae6c3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/common/axis.py
View file @
2e44b292
...
...
@@ -1698,7 +1698,9 @@ class Axis:
check_encoder
=
(
self
.
config
.
get
(
"check_encoder"
,
bool
,
self
.
encoder
)
and
self
.
encoder
)
check_discrepancy
=
not
(
read_encoder_position
and
not
check_encoder
)
check_discrepancy
=
self
.
config
.
get
(
"check_discrepancy"
,
bool
,
True
)
and
(
not
(
read_encoder_position
and
not
check_encoder
)
)
if
check_discrepancy
and
abs
(
dial_initial_pos
-
hw_pos
)
>
self
.
tolerance
:
raise
RuntimeError
(
"%s: discrepancy between dial (%f) and controller position (%f), aborting"
...
...
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