Commit c4100c84 authored by Linus Pithan's avatar Linus Pithan Committed by Matias Guijarro
Browse files

fix issue #2049: do not check SCLIMPOS in home_state

parent a62651b3
......@@ -2124,7 +2124,7 @@ class Axis:
return dial_positions / self.steps_per_unit
class AxisState(object):
class AxisState:
"""
Standard states:
MOVING : 'Axis is moving'
......
......@@ -451,6 +451,13 @@ class Icepap(Controller):
home_state = _command(self._cnx, "%s:?HOMESTAT" % axis.address)
if not home_state.startswith("FOUND"):
raise RuntimeError("Home switch not found.")
hs = self.home_source(axis)
if hs == "Lim+" and home_state == "FOUND +1":
state.unset("FAULT")
state.unset("LIMPOS")
elif hs == "Lim-" and home_state == "FOUND -1":
state.unset("FAULT")
state.unset("LIMNEG")
return state
@object_method(types_info=("None", "float"), filter=_object_method_filter)
......
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