MAVLink message construction CRC (padding) / Seq nb

Hi,

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,

Karel

Views: 163

Reply to This

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service