Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable correct exporting of char data but with passing CI #99

Merged
merged 2 commits into from
Jul 4, 2024

Commits on Apr 17, 2024

  1. core.py: Enable correct exporting of char data

    As the data type for saving the char in pyulog was np.int8, the topics
    that had fields with characters weren't able to get encoded (with error:
    pyulog struct.error: char format requires a bytes object of length 1).
    
    Therefore, this enables manual conversion of np.int8 object into bytes()
    with single character, so that struct.pack command works as expected.
    
    Notable example of where this is needed is the "transponder_report"
    topic (included in PX4 v1.14)'s callsign[] character array. Before this
    fix, the "write_ulog()" function would fail as the struct.pack couldn't
    correctly encode the characters stored in int8 type
    junwoo091400 committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    30b32ec View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. ci: fix too long line

    hermankolden committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    1d433bc View commit details
    Browse the repository at this point in the history