mavp2p icon indicating copy to clipboard operation
mavp2p copied to clipboard

Support modified dialects

Open sys-dev-me opened this issue 1 year ago • 1 comments

Is it possible to support modified dialects not from the imported library of the https://github.com/bluenviron/gomavlib. For example: I have modified ardupilotmega dialect from https://github.com/inertiallabs/mavlink but the same original library was declared to use from the https://github.com/bluenviron/gomavlib/tree/main/pkg/dialects/ardupilotmega

sys-dev-me avatar Aug 28 '24 11:08 sys-dev-me

just because of using EAHRS message with the same Message ID 400 like in Buzzer

sys-dev-me avatar Aug 28 '24 11:08 sys-dev-me

Hello, first of all mavp2p only uses a small subset of messages of the ardupilotmega dialect. Other than that, it is not bounded to any particular dialect. If you want to know the exact list of messages, it depends on the command line flags and it's here:

https://github.com/bluenviron/mavp2p/blob/470f005a0f38f67b2677f57ebe9f6b2196ee3b65/main.go#L32-L49

If this is still not enough, you have to start from the XML files of your custom dialect (not the Go files), then convert them to Go by following instructions here:

https://github.com/bluenviron/gomavlib?tab=readme-ov-file#dialect-generation

Then finally you have to edit the source code of mavp2p and replace dialects/ardupilogmega with a path to your dialect.

But i repeat, this shouldn't be necessary in most cases.

aler9 avatar Jan 03 '25 13:01 aler9