I have a question about the generation of MAVLink messages.

I am constructing my own MAVLink messages, in hex format.

The seq number has a range from 0 to 255 (00-FF), but what happens is the seq number reaches the max amount of 255? Does is start over from 0?

Another question has to do with the crc. I'am able to calculate the correct crc value for my own messages, based on the correct fields and magic, but sometimes I get an odd-length crc. My question, does mavlink allow padding to make the crc an odd-length hex number, by adding zeros ahead? For the script I am writing, I need every value in every field to be of even length.

Kind regards,


You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –


Jørn Ramnæs liked VIDEO LINK's profile
Mark Harrison left a comment on Moderators
"Wow, Ning2 looks really great on mobile. I had sort of drifted away as my browse-time went more on my phone, so this is great."
Hank Deucker left a comment on PIXHAWK
"I am sure most will say not again, Pixhawk telemetry. I do need help and all can be reassured that I have spent many hours scouring the net for useful information. I am not new at quadcopter flying, I started in 2012 and have progressed through many…"
Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
May 28