proc service added

This commit is contained in:
2022-05-18 18:39:18 +02:00
parent 168b662288
commit 973bdeadd6
6 changed files with 52 additions and 0 deletions

24
pus_tc/system/proc.py Normal file
View 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