Skip to content

SweeWarman/HaskMavlink

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

HaskMAVLink

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

Usage

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/pymavlink_server.py.

  • 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/pymavlink_server.py
  • Run the sample test application
stack test

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

About

A Haskell implementation to send/receive MAVLink messages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published