some improvements and updates
This commit is contained in:
@ -5,7 +5,7 @@ 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
|
||||
from config.object_ids import GPS_HANDLER_1_ID, GPS_CONTROLLER
|
||||
|
||||
|
||||
class GpsOpCodes(enum.Enum):
|
||||
@ -18,7 +18,7 @@ class SetIds:
|
||||
|
||||
def pack_gps_command(object_id: bytes, tc_queue: TcQueueT, op_code: str):
|
||||
if op_code == GpsOpCodes.RESET_GNSS.value:
|
||||
if object_id == GPS_HANDLER_0_ID:
|
||||
if object_id == GPS_CONTROLLER:
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Resetting GPS device 0"))
|
||||
elif object_id == GPS_HANDLER_1_ID:
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Resetting GPS device 1"))
|
||||
|
Reference in New Issue
Block a user