update gps hk parsing

This commit is contained in:
2022-05-24 01:49:57 +02:00
parent 9fc90ba487
commit b7a6291560
5 changed files with 27 additions and 45 deletions

View File

@ -9,8 +9,6 @@ from tmtccmd.tc.definitions import TcQueueT
from tmtccmd.tc.pus_8_funccmd import generate_action_command
from config.object_ids import GPS_HANDLER_1_ID, GPS_HANDLER_0_ID
LOGGER = get_console_logger()
@ -46,17 +44,8 @@ def add_gps_cmds(cmd_dict: ServiceOpCodeDictT):
def pack_gps_command(object_id: bytes, tc_queue: TcQueueT, op_code: str):
if op_code in OpCodes.RESET_GNSS:
if object_id == GPS_HANDLER_0_ID:
# TODO: This needs to be re-implemented
LOGGER.warning("Reset pin handling needs to be re-implemented")
return
# tc_queue.appendleft((QueueCommands.PRINT, "Resetting GPS device 0"))
elif object_id == GPS_HANDLER_1_ID:
LOGGER.warning("Reset pin handling needs to be re-implemented")
return
# tc_queue.appendleft((QueueCommands.PRINT, "Resetting GPS device 1"))
cmd = generate_action_command(object_id=object_id, action_id=int(op_code))
tc_queue.appendleft(cmd.pack_command_tuple())
# TODO: This needs to be re-implemented
LOGGER.warning("Reset pin handling needs to be re-implemented")
if op_code in OpCodes.REQ_OS_HK:
tc_queue.appendleft((QueueCommands.PRINT, f"GMSS: {Info.REQ_OS_HK}"))
cmd = generate_one_hk_command(sid=make_sid(object_id=object_id, set_id=SetIds.HK), ssc=0)