Skip to content
A Haskell implementation to send/receive MAVLink messages
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Remove unnecessary import Jun 16, 2019
src extract filename from input arg Jul 4, 2019
test add common xml for tests Jun 15, 2019
.gitignore Add files May 28, 2019 Add files May 28, 2019
LICENSE Add files May 28, 2019 add info to readme to run tests Jul 4, 2019
Setup.hs Add files May 28, 2019
package.yaml extract filename from input arg Jul 4, 2019
stack.yaml Add files May 28, 2019


This is a library to generate haskell modules for the mavlink protocol.


Using stack

Build project using stack:

stack build

Generate the haskell modules for a given mavlink xml definition:

stack exec mavgen-exe -- -i <path/to/xml/definition> -o <output/path/for/modules>

For help with the mavgen tool:

stack exec mavgen-exe -- --help

Running the test

This is a sample application that uses the generated mavlink modules to talk to simple python mavlink server test/

  • First generate the haskell modules for the common.xml mavlink definition.
stack exec mavgen-exe -- -i test/common.xml -o test
  • Launch the python server to send and receive mavlink packets to the test application
python3 test/
  • Run the sample test application
stack test

See test/Spec.hs for example on using the generated haskell modules

You can’t perform that action at this time.