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
7f858f3b
Commit
7f858f3b
authored
Sep 16, 2020
by
Valentin Valls
Browse files
Avoid negative name
- It's never not a bad idea to use it
parent
e5ce7858
Pipeline
#33547
passed with stages
in 126 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bliss/common/axis.py
View file @
7f858f3b
...
...
@@ -1698,11 +1698,8 @@ class Axis:
check_encoder
=
(
self
.
config
.
get
(
"check_encoder"
,
bool
,
self
.
encoder
)
and
self
.
encoder
)
dont_check_discrepancy
=
read_encoder_position
and
not
check_encoder
if
(
not
dont_check_discrepancy
and
abs
(
dial_initial_pos
-
hw_pos
)
>
self
.
tolerance
):
check_discrepancy
=
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"
%
(
self
.
name
,
dial_initial_pos
,
hw_pos
)
...
...
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