add controller obj IDs

This commit is contained in:
2022-08-11 19:12:27 +02:00
parent 65414bc87f
commit 1a27ea9674
3 changed files with 18 additions and 4 deletions

View File

@ -8,14 +8,18 @@ from config.object_ids import TCS_BOARD_ASS_ID
class OpCodes:
TCS_BOARD_ASS_NORMAL = ["0", "tcs-normal"]
TCS_BOARD_ASS_OFF = ["1", "tcs-off"]
REQUEST_ALL_TEMP_HK = ["temp-hk"]
class Info:
REQUEST_ALL_TEMP_SET = "Request HK set of all temperatures"
TCS_BOARD_ASS_NORMAL = "Switching TCS board assembly on"
TCS_BOARD_ASS_OFF = "Switching TCS board assembly off"
def pack_tcs_sys_commands(q: DefaultPusQueueHelper, op_code: str):
if op_code in OpCodes.REQUEST_ALL_TEMP_HK:
pass
if op_code in OpCodes.TCS_BOARD_ASS_NORMAL:
command_mode(
object_id=TCS_BOARD_ASS_ID,