ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Reading data from /run/mpa/vvpx4_sys_status/request

    Modal Pipe Architecture (MPA)
    2
    3
    333
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hedd
      last edited by

      hello,
      How can we read data from the pipe /run/mpa/vvpx4_sys_status/request in python in order to read the battery data (voltage,charge,current)

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        We do not provide a python integration. Reading from named PIPEs is really straight-forward but you would have to implement the request portion, etc as well.

        See stackoverflow here: https://stackoverflow.com/questions/39089776/python-read-named-pipe

        You can find the format how to read from autopilot_sys_status here:

        https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/master/tools/voxl-inspect-battery.c

        It may be more straight forward to modify voxl-inspect-battery in C to publish the data in a format your Python code can easily ingest

        H 1 Reply Last reply Reply Quote 0
        • H
          hedd @Chad Sweet
          last edited by

          @Chad-Sweet thank you

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors