You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Custom Mavlink messages on Python #739
MAVSDK in C++ allows for any message to be sent using the MavlinkPassthrough plugin. However, since that pulls in the MAVLink C headers, that's not currently supported in the language wrappers such as Python.
My plan is to add support for any messages in v4 (v3 is about to come out). It will allow to set and send custom messages at runtime, rather than compile time, along the lines of:
message = mavlink_passthrough.create_message("MESSAGE_NAME")
message.set_field_float("altitude", 1.0)
mavlink_passthrough.send_message(message)
...
Now for your request, have you looked into the offboard plugin? I think it has an API that is pretty close to it:
https://github.com/mavlink/MAVSDK/blob/bc0da1ea516bb0a015052aca1bf224cb2bd93326/src/mavsdk/plugins/offboard/offboard_impl.cpp#L381-L423
Activity
julianoes commentedon Dec 9, 2024
MAVSDK in C++ allows for any message to be sent using the MavlinkPassthrough plugin. However, since that pulls in the MAVLink C headers, that's not currently supported in the language wrappers such as Python.
My plan is to add support for any messages in v4 (v3 is about to come out). It will allow to set and send custom messages at runtime, rather than compile time, along the lines of:
kripper commentedon Dec 9, 2024
Yes, I'm using offboard and I think I can live with some missing Mavlink messages for now.
[-]Moving from Dronekit to MAVSDK[/-][+][Feature Request] Custom Mavlink messages on Python[/+]