diff --git a/tm/obsw_pus_tm_base.py b/tm/obsw_pus_tm_base.py index 70f06ac5aaa2759184c9e25180ab9fa8e692c6e2..012cc49fc744d84ee009668e98c3b52239396614 100644 --- a/tm/obsw_pus_tm_base.py +++ b/tm/obsw_pus_tm_base.py @@ -25,7 +25,7 @@ class PusTelemetry: (bytearray) to the constructor. It automatically deserializes the packet, exposing various packet fields via getter functions. """ - def __init__(self, byte_array: bytearray): + def __init__(self, byte_array: bytes): self._packet_raw: Final = byte_array self._pus_header: Final = PusPacketHeader(byte_array) byte_array = byte_array[6:] @@ -156,7 +156,7 @@ class PusPacketHeader: """ PUS_HEADER_SIZE = 6 - def __init__(self, pus_packet_raw: bytearray): + def __init__(self, pus_packet_raw: bytes): data_to_check = pus_packet_raw if len(pus_packet_raw) < PusPacketHeader.PUS_HEADER_SIZE: self.version = 0 diff --git a/tm/obsw_pus_tm_factory.py b/tm/obsw_pus_tm_factory.py index 5a1c4642445d6a0396ab5e3ff6700684df3694d0..125127e2633f13fa2bb73765913c2df00977cf7a 100644 --- a/tm/obsw_pus_tm_factory.py +++ b/tm/obsw_pus_tm_factory.py @@ -13,7 +13,7 @@ from tm.obsw_tm_service_5 import Service5TM import struct -def PusTelemetryFactory(raw_packet: bytearray): +def PusTelemetryFactory(raw_packet: bytes): """ Returns a PusTelemetry class instance by extracting the service directly from the raw packet. Sneaky solution allows this function to immediately return diff --git a/utility/obsw_args_parser.py b/utility/obsw_args_parser.py index 0da02b2c498658dbcd1e2981883bcc7cdf6f2a90..cd80b897913f6b1da6a7151e70ef8697b62c2de4 100644 --- a/utility/obsw_args_parser.py +++ b/utility/obsw_args_parser.py @@ -34,18 +34,18 @@ def parse_input_arguments(): '-t', '--tm_timeout', type=float, help='TM Timeout when listening to verification sequence.' ' Default: 12, 6(Serial)', default=6.0) arg_parser.add_argument( - '--np', dest='printFile', help='Supply --np to suppress print output to file.', + '--np', dest='printFile', help='Supply --np to suppress print output to log files.', action='store_false') arg_parser.add_argument( '-o', '--tc_timeout_factor', type=float, help='TC Timeout Factor. Multiplied with ' 'TM Timeout, TC sent again after this time period. Default: 3.5', default=3.5) arg_parser.add_argument( - '-r', '--rawDataPrint', help='Supply -r to print all raw _tm_data directly', + '-r', '--rawDataPrint', help='Supply -r to print all raw TM data directly', action='store_true') arg_parser.add_argument( '-d', '--shortDisplayMode', help='Supply -d to print short output', action='store_true') arg_parser.add_argument( - '--hk', dest='print_hk', help='Supply -k or --hk to print HK _tm_data', action='store_true') + '--hk', dest='print_hk', help='Supply -k or --hk to print HK data', action='store_true') arg_parser.add_argument('--COM', dest="com_port", help='COM Port for serial communication') if len(sys.argv) == 1: