Reading data from /run/mpa/vvpx4_sys_status/request
-
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) -
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:
tools/voxl-inspect-battery.c · master · voxl / VOXL SDK / Utilities / voxl-mpa-tools · GitLab
Tools and utilities specific to MPA.
GitLab (gitlab.com)
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
-
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:
tools/voxl-inspect-battery.c · master · voxl / VOXL SDK / Utilities / voxl-mpa-tools · GitLab
Tools and utilities specific to MPA.
GitLab (gitlab.com)
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
@Chad-Sweet thank you
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login