proc service added
This commit is contained in:
24
pus_tc/system/proc.py
Normal file
24
pus_tc/system/proc.py
Normal file
@ -0,0 +1,24 @@
|
||||
from tmtccmd.config import QueueCommands
|
||||
from tmtccmd.tc.definitions import TcQueueT
|
||||
|
||||
|
||||
class OpCodes:
|
||||
HEATER = ["0", "heater"]
|
||||
|
||||
|
||||
class Info:
|
||||
HEATER = "heater procedure"
|
||||
|
||||
|
||||
def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
testint = 10
|
||||
print(f"hello world{op_code} {testint}")
|
||||
if op_code in OpCodes.HEATER:
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "TUrning heater 0 on"))
|
||||
tc_queue.appendleft(heater1cmd_on.pack_command_tuple())
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "TUrning heater 0 off"))
|
||||
tc_queue.appendleft(heater1cmd_off.pack_command_tuple())
|
||||
tc_queue.appendleft(heater1cmd.pack_command_tuple())
|
||||
tc_queue.appendleft(heater1cmd.pack_command_tuple())
|
||||
|
||||
pass
|
Reference in New Issue
Block a user