Java Mavlink library

Hi everyone,

During the past month or so I have been developing a component for an internal proprietary system. As part of this project, I also wrote a library that generates dialects for Mavlink, deals with packing/unpacking the protocol, serializes/deserializes message payloads, performs CRC checks, supports signing and more. I wrote it as a separate module and released it as an open source project, which is also available on Maven Central.

It is available at
Please feel free to use, criticize, make suggestions, and most importantly report bugs, design problems or any other relevant issue that keeps you from achieving your intended goal (within constraints of the library’s objective, obviously).

Hopefully you find this helpful :slight_smile:



Hi, Ben. Ben. Many thanks. It’s very helpful.

Hi, Ben. Do you have example using Mavlink2 message send?
When i try to create and send message Mavlink2, i recieve error.

Exception in thread “main” java.lang.IllegalStateException: Failed generate signature for packet

			if (message.getPayload() instanceof Heartbeat) {
				// This is a heartbeat message
				if ( handshake != true ) {
					System.out.println("\n Handshake \n ");				
					connection.send(new Mavlink2Message<>(
					handshake = true;						

This parammeters i get from Heartbeat message of APM.

I use PX4 v.3 APM

Hi kgmormylo,

Please open an issue at and make sure to include the full stack trace of the exception :slight_smile:

Thank you,

Hi, I am new user but yes, this concept is new I must try.I learn about concept which you write and go to link but it can’t open properly. I don’t what did happen there.Next time i will try again if you have another lik then pls share.
If you want to know more about my institute where I start to learn JAVA :