tmtcgui -m7 is kinda working like I would expect it to

This commit is contained in:
2022-05-23 00:20:06 +02:00
parent 1f7faef083
commit 85a3c936a4
3 changed files with 17 additions and 4 deletions

View File

@ -1,5 +1,5 @@
from tmtccmd.tc.definitions import TcQueueT
from tmtccmd.config import QueueCommands
from .common import command_mode
import config.object_ids as obj_ids
@ -33,6 +33,16 @@ def pack_controller_commands(tc_queue: TcQueueT, op_code: str):
info=op_code + " to " + str(mode) + "," + str(submode),
)
tc_queue.appendleft((QueueCommands.WAIT, 20))
command_mode(
object_id=get_object_from_op_code(op_code),
mode=0,
submode=0,
tc_queue=tc_queue,
info=op_code + " to 0,0",
)
def get_object_from_op_code(op_code: str):
try: