mav_rp2040 icon indicating copy to clipboard operation
mav_rp2040 copied to clipboard

Adding an additional mavlink message to pymavminimal.py

Open labtoast opened this issue 2 years ago • 1 comments

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.

labtoast avatar Jul 19 '23 00:07 labtoast

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

stephendade avatar Jul 20 '23 01:07 stephendade