update tmtc
This commit is contained in:
@ -41,7 +41,7 @@ class Info:
|
||||
DISABLE_MGM_HK = "Disable MGM HK data generation"
|
||||
|
||||
|
||||
PERFORM_MGM_CALIBRATION = True
|
||||
PERFORM_MGM_CALIBRATION = False
|
||||
CALIBRATION_SOCKET_HOST = "localhost"
|
||||
CALIBRATION_SOCKET_PORT = 6677
|
||||
CALIBRATION_ADDR = (CALIBRATION_SOCKET_HOST, CALIBRATION_SOCKET_PORT)
|
||||
@ -153,7 +153,9 @@ def perform_mgm_calibration(pw: PrintWrapper, mgm_tuple: Tuple):
|
||||
CALIBR_SOCKET.sendall(f"{declare_api_cmd}\n".encode())
|
||||
reply = CALIBR_SOCKET.recv(1024)
|
||||
if len(reply) != 2:
|
||||
pw.dlog(f"MGM calibration: Reply received command {declare_api_cmd} has invalid length {len(reply)}")
|
||||
pw.dlog(
|
||||
f"MGM calibration: Reply received command {declare_api_cmd} has invalid length {len(reply)}"
|
||||
)
|
||||
return
|
||||
else:
|
||||
if str(reply[0]) == "0":
|
||||
@ -168,7 +170,9 @@ def perform_mgm_calibration(pw: PrintWrapper, mgm_tuple: Tuple):
|
||||
CALIBR_SOCKET.sendall(command)
|
||||
reply = CALIBR_SOCKET.recv(1024)
|
||||
if len(reply) != 2:
|
||||
pw.dlog(f"MGM calibration: Reply received command magnetometer_field has invalid length {len(reply)}")
|
||||
pw.dlog(
|
||||
f"MGM calibration: Reply received command magnetometer_field has invalid length {len(reply)}"
|
||||
)
|
||||
return
|
||||
else:
|
||||
if str(reply[0]) == "0":
|
||||
|
Reference in New Issue
Block a user