can request mgm hk now

This commit is contained in:
Robin Müller 2022-08-16 11:56:06 +02:00
parent 9d4eab39e7
commit 9de4cabcd9
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 7 additions and 2 deletions

View File

@ -129,7 +129,7 @@ RW_ASSEMBLY = bytes([0x73, 0x00, 0x00, 0x04])
# Controllers
TCS_CONTROLLER = bytes([0x43, 0x40, 0x00, 0x01])
ACS_CONTROLLER = bytes([0x43, 0x40, 0x00, 0x02])
ACS_CONTROLLER = bytes([0x43, 0x00, 0x00, 0x02])
CORE_CONTROLLER_ID = bytes([0x43, 0x00, 0x00, 0x03])

View File

@ -2,12 +2,15 @@ import enum
from config.definitions import CustomServiceList
from config.object_ids import ACS_CONTROLLER
from tmtccmd import DefaultProcedureInfo
from tmtccmd import DefaultProcedureInfo, get_console_logger
from tmtccmd.config.tmtc import tmtc_definitions_provider, TmtcDefinitionWrapper, OpCodeEntry
from tmtccmd.tc import DefaultPusQueueHelper, service_provider
from tmtccmd.tc.pus_3_fsfw_hk import generate_one_hk_command, make_sid
LOGGER = get_console_logger()
class SetIds(enum.IntEnum):
MGM_SET = 0
@ -47,3 +50,5 @@ def pack_acs_ctrl_command(
sid = make_sid(ACS_CONTROLLER, SetIds.MGM_SET)
q.add_log_cmd("Requesting one MGM HK packet")
q.add_pus_tc(generate_one_hk_command(sid))
else:
LOGGER.info(f"Unknown op code {op_code}")