BluDay / multiwii-proxy-python

User-friendly Python 3 module for MultiWii-based drones.

Home Page:https://bluday.github.io/multiwii-proxy-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiwii-proxy-python

multiwii-proxy-python (formerly known as WiiProxy) is a simple and user-friendly Python 3 module for controlling MultiWii-based drones using version 1.0 of the MultiWii Serial Protocol (MSP).

This module does not support MSP v2, or any of the newer versions.

Versioning

Documentation

The API documentation can be found on the documentation site.

Installation

Run either one of these commands to install the package:

python setup.py

pip install .

Usage

from serial import Serial

from multiwii import MultiWii

from multiwii.commands import MSP_IDENT

serial_port = Serial('/dev/ttyUSB0', baudrate=115200)

multiwii = MultiWii(serial_port)

ident = multiwii.get_data(MSP_IDENT)

print(repr(ident.multitype)) # <MultiWiiMultitype.QuadX: 3>

Other example usages can be found in the examples directory.

Licensing

This project is licensed under the MIT license. See LICENSE for more details.

About

User-friendly Python 3 module for MultiWii-based drones.

https://bluday.github.io/multiwii-proxy-python/

License:MIT License


Languages

Language:Python 100.0%