Merge pull request 'TCS Board Command' (#27) from mueller/tcs-board-cmd into develop
Reviewed-on: #27
This commit is contained in:
commit
223ef1b833
@ -13,7 +13,7 @@
|
|||||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
||||||
<option name="PARAMETERS" value="-c udp -s imtq -o 2 -l -t 4 --hk" />
|
<option name="PARAMETERS" value="-s imtq -o 2 -l -t 4 --hk" />
|
||||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||||
<option name="EMULATE_TERMINAL" value="true" />
|
<option name="EMULATE_TERMINAL" value="true" />
|
||||||
<option name="MODULE_MODE" value="false" />
|
<option name="MODULE_MODE" value="false" />
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
||||||
<option name="PARAMETERS" value="-s pdu1 -l -t 3" />
|
<option name="PARAMETERS" value="-s pdu1 -l -t 4" />
|
||||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||||
<option name="EMULATE_TERMINAL" value="true" />
|
<option name="EMULATE_TERMINAL" value="true" />
|
||||||
<option name="MODULE_MODE" value="false" />
|
<option name="MODULE_MODE" value="false" />
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
||||||
<option name="PARAMETERS" value="-s 3 -p --hk" />
|
<option name="PARAMETERS" value="-s 3 --hk" />
|
||||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||||
<option name="EMULATE_TERMINAL" value="true" />
|
<option name="EMULATE_TERMINAL" value="true" />
|
||||||
<option name="MODULE_MODE" value="false" />
|
<option name="MODULE_MODE" value="false" />
|
||||||
|
@ -138,13 +138,16 @@ def get_eive_service_op_code_dict(service_op_code_dict: ServiceOpCodeDictT):
|
|||||||
|
|
||||||
op_code_dict_srv_pdu1 = {
|
op_code_dict_srv_pdu1 = {
|
||||||
"0": ("PDU1 Tests", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
"0": ("PDU1 Tests", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||||
|
Pdu1OpCodes.TCS_BOARD_ON.value:
|
||||||
|
("PDU1: Turn TCS board on", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||||
|
Pdu1OpCodes.TCS_BOARD_OFF.value:
|
||||||
|
("PDU1: Turn TCS board off", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||||
Pdu1OpCodes.STAR_TRACKER_ON.value:
|
Pdu1OpCodes.STAR_TRACKER_ON.value:
|
||||||
("PDU1: Turn star tracker on", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
("PDU1: Turn star tracker on", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||||
"2": ("PDU1: Get switch state of star tracker", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
|
||||||
Pdu1OpCodes.SUS_NOMINAL_ON.value:
|
|
||||||
("PDU1: Turn SUS nominal on", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
|
||||||
Pdu1OpCodes.STAR_TRACKER_OFF.value:
|
Pdu1OpCodes.STAR_TRACKER_OFF.value:
|
||||||
("PDU1: Turn star tracker off", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
("PDU1: Turn star tracker off", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||||
|
Pdu1OpCodes.SUS_NOMINAL_ON.value:
|
||||||
|
("PDU1: Turn SUS nominal on", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||||
Pdu1OpCodes.SUS_NOMINAL_OFF.value:
|
Pdu1OpCodes.SUS_NOMINAL_OFF.value:
|
||||||
("PDU1: Turn SUS nominal off", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
("PDU1: Turn SUS nominal off", {OpCodeDictKeys.TIMEOUT: 2.0}),
|
||||||
Pdu1OpCodes.ACS_A_SIDE_ON.value:
|
Pdu1OpCodes.ACS_A_SIDE_ON.value:
|
||||||
|
@ -14,12 +14,15 @@ from gomspace.gomspace_pdu_definitions import *
|
|||||||
|
|
||||||
|
|
||||||
class Pdu1OpCodes(enum.Enum):
|
class Pdu1OpCodes(enum.Enum):
|
||||||
STAR_TRACKER_ON = "1"
|
TESTS = "0"
|
||||||
SUS_NOMINAL_ON = "3"
|
TCS_BOARD_ON = "1"
|
||||||
|
TCS_BOARD_OFF = "2"
|
||||||
|
STAR_TRACKER_ON = "3"
|
||||||
STAR_TRACKER_OFF = "4"
|
STAR_TRACKER_OFF = "4"
|
||||||
SUS_NOMINAL_OFF = "5"
|
SUS_NOMINAL_ON = "5"
|
||||||
ACS_A_SIDE_ON = "6"
|
SUS_NOMINAL_OFF = "6"
|
||||||
ACS_A_SIDE_OFF = "7"
|
ACS_A_SIDE_ON = "7"
|
||||||
|
ACS_A_SIDE_OFF = "8"
|
||||||
|
|
||||||
|
|
||||||
class PDU1TestProcedure:
|
class PDU1TestProcedure:
|
||||||
@ -41,10 +44,26 @@ class PDU1TestProcedure:
|
|||||||
def pack_pdu1_commands(object_id: bytearray, tc_queue: TcQueueT, op_code: str):
|
def pack_pdu1_commands(object_id: bytearray, tc_queue: TcQueueT, op_code: str):
|
||||||
tc_queue.appendleft((QueueCommands.PRINT, "Commanding PDU1"))
|
tc_queue.appendleft((QueueCommands.PRINT, "Commanding PDU1"))
|
||||||
|
|
||||||
|
if op_code == Pdu1OpCodes.TCS_BOARD_ON.value:
|
||||||
|
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn TCS board on"))
|
||||||
|
command = pack_set_param_command(
|
||||||
|
object_id, PDUConfigTable.out_en_0.parameter_address,
|
||||||
|
PDUConfigTable.out_en_2.parameter_size, Channel.on
|
||||||
|
)
|
||||||
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
|
if op_code == Pdu1OpCodes.TCS_BOARD_OFF.value:
|
||||||
|
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn TCS board off"))
|
||||||
|
command = pack_set_param_command(
|
||||||
|
object_id, PDUConfigTable.out_en_0.parameter_address,
|
||||||
|
PDUConfigTable.out_en_2.parameter_size, Channel.off
|
||||||
|
)
|
||||||
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
if op_code == Pdu1OpCodes.STAR_TRACKER_ON.value:
|
if op_code == Pdu1OpCodes.STAR_TRACKER_ON.value:
|
||||||
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn star tracker on"))
|
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn star tracker on"))
|
||||||
command = pack_set_param_command(object_id, PDUConfigTable.out_en_2.parameter_address,
|
command = pack_set_param_command(
|
||||||
PDUConfigTable.out_en_2.parameter_size, Channel.on)
|
object_id, PDUConfigTable.out_en_2.parameter_address,
|
||||||
|
PDUConfigTable.out_en_2.parameter_size, Channel.on
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
if op_code == Pdu1OpCodes.SUS_NOMINAL_ON.value:
|
if op_code == Pdu1OpCodes.SUS_NOMINAL_ON.value:
|
||||||
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn SUS nominal on"))
|
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn SUS nominal on"))
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 559e42f03b51cfb673e46cd3b25e68348c33fc21
|
Subproject commit aeb778d8d413e29c7eb6fe4c1ba7900800555a53
|
2
tmtccmd
2
tmtccmd
@ -1 +1 @@
|
|||||||
Subproject commit a7299e7a68936ce7fa1fdf004a6c2dd2c8073711
|
Subproject commit 81be25388c3920870ab93f015435b933f5ed828d
|
Loading…
Reference in New Issue
Block a user