Commit 270198f8 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange Committed by Cyril Guilloud
Browse files

pi_e753: check if moving with **wave**

parent 3a3b2c3a
......@@ -109,6 +109,10 @@ class PI_E753(pi_gcs.Communication, pi_gcs.Recorder, Controller):
""" STATE """
def state(self, axis):
# check if WAV motion is active
if self.sock.write_readline(chr(9).encode()) != b"0":
return AxisState("MOVING")
if self._get_closed_loop_status(axis):
if self._get_on_target_status(axis):
return AxisState("READY")
......
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