Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pyulog represents char[x] as x columns of individual chars #92

@BWStearns

Description

@BWStearns

pyulog represents char[x] fields as x number of str fields. It seems less surprising to represent them all as one string instead of having to have a postprocess that concats them later. In the docs it's described as a char[127] which would more intuitively map to a string than 127 char values each with their own key (or in this case column).

I've shown an example here but as far as I can tell it impacts all fields that are char[x].

image

# A logging message, output with PX4_{WARN,ERR,INFO}

uint64 timestamp		# time since system start (microseconds)

uint8 severity # log level (same as in the linux kernel, starting with 0)
char[127] text

uint8 ORB_QUEUE_LENGTH = 4

https://docs.px4.io/main/en/msg_docs/LogMessage.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions