eive-tmtc/pus_tc/system/proc.py

25 lines
743 B
Python
Raw Normal View History

2022-05-18 18:39:18 +02:00
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