How to use the pyulog.core.ULog.parse_string function in pyulog

To help you get started, we’ve selected a few pyulog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PX4 / pyulog / pyulog / core.py View on Github external
def __init__(self, data, header, is_info_multiple=False):
            if is_info_multiple: # INFO_MULTIPLE message
                self.is_continued, = struct.unpack('
github PX4 / pyulog / pyulog / core.py View on Github external
def __init__(self, data, header, is_info_multiple=False):
            if is_info_multiple: # INFO_MULTIPLE message
                self.is_continued, = struct.unpack('
github PX4 / pyulog / pyulog / core.py View on Github external
def __init__(self, data, header):
            format_arr = ULog.parse_string(data).split(':')
            self.name = format_arr[0]
            types_str = format_arr[1].split(';')
            self.fields = [] # list of tuples (type, array_size, name)
            for t in types_str:
                if len(t) > 0:
                    self.fields.append(self._extract_type(t))
github PX4 / pyulog / pyulog / core.py View on Github external
def __init__(self, data, header):
            self.log_level, = struct.unpack('
github PX4 / pyulog / pyulog / core.py View on Github external
def __init__(self, data, header, message_formats):
            self.multi_id, = struct.unpack('