...
This commit is contained in:
@@ -14,15 +14,16 @@ import numpy as np
|
|||||||
import subprocess as sp
|
import subprocess as sp
|
||||||
|
|
||||||
|
|
||||||
# --- FLI-hardware related (ROBOTEL variant)
|
#
|
||||||
|
# The next functions must return 0 in the case of successfull operation and
|
||||||
|
# non-zero otherwise
|
||||||
|
#
|
||||||
def set_focus(foc_val):
|
def set_focus(foc_val):
|
||||||
pass
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def get_image(filename, exp_time):
|
def get_image(filename, exp_time):
|
||||||
pass
|
return 0
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ def set_focus(foc_val):
|
|||||||
sock.send("goto={:g}".format(foc_val))
|
sock.send("goto={:g}".format(foc_val))
|
||||||
resp = sock.recv(20)
|
resp = sock.recv(20)
|
||||||
|
|
||||||
if resp != "OK\n":
|
if resp != "OK":
|
||||||
sock.close()
|
sock.close()
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user