Package termination byte in Mavlink

I am trying to parse Mavlink serial messages and I’m having trouble differentiating individual packages. Does Mavlink have a termination byte I can use to identify the end of a package?

Note: I am having to manually build the parser because I am building a Flutter application to received status messages from a Flight Controller. Flutter uses Dart and is, unfortunately, not one of the supported languages: https://mavlink.io/en/#supported_languages

Hello! Mavlink don’t have a a termination byte, it use 2 byte of checksum (more detail). There is 3 ways. You can use c++ functions in your flutter app https://flutter.dev/docs/development/platform-integration/c-interop, embed another language interpreter or parse mavlink yourself. The latter path is much more difficult than you think. But as a basis, you can take the mavlink implementation for javascript

1 Like