Skip to content

Navigation Menu

Sign in
Sign up

How to add a customize message #28

Unanswered
hudan8080808 asked this question in Q&A
Discussion options

You must be logged in to vote

Replies: 4 comments

Comment options

add a customize message,but it always tips a error called "duplicate ID"

You must be logged in to vote
0 replies
Comment options

Hello, to add a custom message you have to find an ID that is not in use from the dialect that you're using. Please refer to this examples for instructions on how to define a custom dialect or a custom message:

https://github.com/aler9/gomavlib/blob/main/examples/dialect-custom/main.go

You must be logged in to vote
0 replies
Comment options

Thank you for your reply. But connecting to the ardupolit, the calculated CRC value is incorrect,I want to know the CRC_EXTRA should be setting whether or not ,and if yes ,how to set?

You must be logged in to vote
0 replies
Comment options

Hello, CRC_EXTRA is computed automatically from the message struct. If the CRC_EXTRA of the Go message doesn't match the one of the Ardupilot message, it means that the Go message definition is different than the Ardupilot one.

You have to write a .xml containing your dialect, and then:

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
Converted from issue

This discussion was converted from issue #15 on June 21, 2022 08:30.

AltStyle によって変換されたページ (->オリジナル) /