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

No attribute in MAVSDK for battery current #581

Open
ghost opened this issue Apr 19, 2023 · 3 comments
Open

No attribute in MAVSDK for battery current #581

ghost opened this issue Apr 19, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 19, 2023

Hi, I tried to access battery current information using MAVSDK (python version 1.4.5). My flight controller is producing mavlink messages BATTERY_STATUS (147) and SYS_STATUS(1), so the information exists. I asked on MAVSDK official discord and it seems like there is no MAVSDK attribute to store that information at the moment.

Note: Class Battery under telemetry.py seems like a natural place to add such attribute.

@JonasVautherin
Copy link
Collaborator

It seems like it is upstream: https://github.com/mavlink/MAVSDK-Proto/blob/main/protos/telemetry/telemetry.proto#L599.

Unfortunately it is not yet in MAVSDK v1.4.x. It will come with MAVSDK v2, which has not been released yet. I fear the only way right now is to build mavsdk_server and run MAVSDK-Python manually with latest main branches.

@ghost
Copy link
Author

ghost commented Apr 20, 2023

Hi @JonasVautherin and thank you for responding.

I will try that approach then 👍 . Any rough idea when MAVSDK v2 will be released?

@julianoes
Copy link
Collaborator

julianoes commented Apr 21, 2023

Any rough idea when MAVSDK v2 will be released?

I hope this year in a few weeks, surely this year. See todos here: mavlink/MAVSDK#2002 I'm just working on this in my spare time 🤷‍♂️.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants