tmtcgui -m7 is kinda working like I would expect it to
This commit is contained in:
parent
1f7faef083
commit
85a3c936a4
@ -6,7 +6,7 @@ from PyQt5 import QtCore
|
|||||||
|
|
||||||
|
|
||||||
from tmtccmd.core.globals_manager import get_global
|
from tmtccmd.core.globals_manager import get_global
|
||||||
from tmtccmd.config.definitions import CoreGlobalIds
|
from tmtccmd.config.definitions import CoreGlobalIds, CoreModeList
|
||||||
|
|
||||||
|
|
||||||
class Parameter:
|
class Parameter:
|
||||||
@ -90,7 +90,10 @@ class ParameterDialog(QDialog):
|
|||||||
"""
|
"""
|
||||||
def prompt_parameters(parameterList):
|
def prompt_parameters(parameterList):
|
||||||
gui = get_global(CoreGlobalIds.GUI)
|
gui = get_global(CoreGlobalIds.GUI)
|
||||||
if gui:
|
mode = get_global(CoreGlobalIds.MODE)
|
||||||
|
|
||||||
|
# gui only works in cont mode right now
|
||||||
|
if gui and mode == CoreModeList.CONTINUOUS_MODE:
|
||||||
return _gui_prompt(parameterList)
|
return _gui_prompt(parameterList)
|
||||||
else:
|
else:
|
||||||
return _cli_prompt(parameterList)
|
return _cli_prompt(parameterList)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
from tmtccmd.tc.definitions import TcQueueT
|
from tmtccmd.tc.definitions import TcQueueT
|
||||||
|
from tmtccmd.config import QueueCommands
|
||||||
|
|
||||||
from .common import command_mode
|
from .common import command_mode
|
||||||
import config.object_ids as obj_ids
|
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),
|
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):
|
def get_object_from_op_code(op_code: str):
|
||||||
try:
|
try:
|
||||||
|
2
tmtccmd
2
tmtccmd
@ -1 +1 @@
|
|||||||
Subproject commit 208f5779327db817841f073d0bbdd96da491b5d9
|
Subproject commit b031eefe4aea7829e5aa2051e7493472529e6d2d
|
Loading…
x
Reference in New Issue
Block a user