stephendade / mav_rp2040

MAVLink for the RP2040
15 stars 5 forks source link

Adding an additional mavlink message to pymavminimal.py #2

Open labtoast opened 11 months ago

labtoast commented 11 months ago

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 commented 11 months ago

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