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

Adding an additional mavlink message to pymavminimal.py #2

Open
labtoast opened this issue Jul 19, 2023 · 1 comment
Open

Adding an additional mavlink message to pymavminimal.py #2

labtoast opened this issue Jul 19, 2023 · 1 comment

Comments

@labtoast
Copy link

What xml files and mavgen command was used to generate the pymavminimal file? I wanted to add the battery_status message so that I could generate messages from a LiPo battery module.

Thanks for sharing your code! I was able to get the named_value_float messages across successfully.

@stephendade
Copy link
Owner

pymavminimal.py is a cut-down version of what ./pymavlink/tools/mavgen.py --lang=Python --wire-protocol=2.0 --output=common20.py message_definitions/v1.0/common.xml creates.

You'll need to generate that file, then copy-paste the battery_status message across to pymavminimal.py

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