PLOC Commands #64
@ -59,8 +59,10 @@ class MemAddresses(enum.IntEnum):
|
|||||||
DEADBEEF = 0x40000004
|
DEADBEEF = 0x40000004
|
||||||
|
|
||||||
|
|
||||||
class PlocReplyIds:
|
class PlocReplyIds(enum.IntEnum):
|
||||||
tm_mem_read_report = 6
|
TM_MEM_READ_RPT = 6
|
||||||
|
TM_CAM_CMD_RPT = 19
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def pack_ploc_mpsoc_commands(
|
def pack_ploc_mpsoc_commands(
|
||||||
|
@ -58,7 +58,7 @@ def handle_imtq_replies(
|
|||||||
def handle_ploc_replies(
|
def handle_ploc_replies(
|
||||||
action_id: int, printer: FsfwTmTcPrinter, custom_data: bytearray
|
action_id: int, printer: FsfwTmTcPrinter, custom_data: bytearray
|
||||||
):
|
):
|
||||||
if action_id == PlocReplyIds.tm_mem_read_report:
|
if action_id == PlocReplyIds.TM_MEM_READ_RPT:
|
||||||
header_list = [
|
header_list = [
|
||||||
"PLOC Memory Address",
|
"PLOC Memory Address",
|
||||||
"PLOC Mem Len",
|
"PLOC Mem Len",
|
||||||
@ -73,6 +73,13 @@ def handle_ploc_replies(
|
|||||||
print(content_list)
|
print(content_list)
|
||||||
printer.file_logger.info(header_list)
|
printer.file_logger.info(header_list)
|
||||||
printer.file_logger.info(content_list)
|
printer.file_logger.info(content_list)
|
||||||
|
elif action_id == PlocReplyIds.TM_CAM_CMD_RPT:
|
||||||
|
header_list = ["Camera reply string", "ACK"]
|
||||||
|
content_list = [custom_data[:len(custom_data) - 1].decode('utf-8'), hex(custom_data[-1])]
|
||||||
|
print(header_list)
|
||||||
|
print(content_list)
|
||||||
|
printer.file_logger.info(header_list)
|
||||||
|
printer.file_logger.info(content_list)
|
||||||
|
|
||||||
|
|
||||||
def handle_supervisor_replies(
|
def handle_supervisor_replies(
|
||||||
|
Loading…
Reference in New Issue
Block a user