Commit 2e44b292 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

axis: added a configuration option to not check discrepancy.

parent 00ae6c3a
......@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment