GithubHelp home page GithubHelp logo

erinaceous / magpi Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 816 KB

Code for my Quadcopter, which is using a Raspberry Pi as its brains. Includes a Python library for speaking the MultiWii Serial Protocol / MSP.

License: MIT License

Python 96.67% Shell 3.33%

magpi's Introduction

magpi

Code for my Quadcopter, which is using a Raspberry Pi as its brains. Includes a Python library for speaking the MultiWii Serial Protocol / MSP.

installing & using the multiwii library

this is handled by distutils, so simply:

sudo python setup.py install

then you can import the library into your python scripts.

this library is only responsible for generating the MultiWii serial commands -- it doesn't do any actual communication by itself. bin/multiwiid.py does do this -- it takes exclusive control of a serial device and listens on the network, by default on UDP port 5001.

If you can successfully run multiwiid, from your own code you just need to create a client socket and connect to it. By default you'll need to copy config.ini to /etc/magpi.ini on the computer connected to your flight controller.

See tools/test_arm.py and tools/test_controller.py for two examples of this; sending RC commands to the flight controller through the multiwiid server.

Otherwise, you can just use PySerial to send commands to your flight controller and read their responses.

using the other stuff

the other stuff in this repo is the scaffolding for getting an Arch-Pi linux system up and running, with wireless networking and multiwiid starting by default, plus some remote tools e.g. in tools/ for connecting the MultiWiiConf GUI to a flight controller over the network.

caveats

I massively reorganized this without testing it, and currently unable to push the latest changes from my quadcopter, so some of the external gubbins may not work! the multiwii library does, however, import successfully.

magpi's People

Contributors

erinaceous avatar

Stargazers

 avatar Stubertus avatar Tony Wall avatar

Watchers

 avatar James Cloos avatar

Forkers

quenaz rionmotley

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.