Python Toolkit for interfacing with the Varisense VMU931.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs fix typo in docs Aug 10, 2017
examples Fix bug in quaternion plotting example. May 17, 2018
pyvmu remove accidentally commited test code :( Aug 10, 2017
.gitignore docs updates Aug 10, 2017
LICENSE.txt Added setup.py Aug 10, 2017
README.md add read the docs badge Aug 10, 2017
README.rst Added setup.py Aug 10, 2017
requirements.txt add requirements file Aug 8, 2017
setup.py Added setup.py Aug 10, 2017

README.md

Documentation Status

Variense VMU931 Toolkit

This project aims at implementing a pure-python VMU931 toolkit, including both parsing and communication with the Variense VMU931 Device.

The VMU931 is a high resolution, USB-based accelerometer, gyroscope and magnetometer made by Variense. Please note that this library is unofficial, and is not produced/endorsed by Variense.

So far, basic processing of all outputs is supported: Quaternion, Euler Angles, Accelerometer, Magnetometer, Gyroscope and Heading. These outputs can be controlled using the set_* methods, or by pasing in flags to the VMU931Parser constructor. Status messages are parsed, allowing setting rather than toggling of different data streams. The toolkit does not currently support self-test or callibration functionality.

Basic usage is as follows:

with VMU931Parser(device="/dev/tty.usbmodem1411", euler=True, accelerometer=True) as vp:
    for n in range(100): # Print 100 datapoints
        packet = vp.parse()
        print(packet)

vp.parse() also supports a callback argument, which is a function to be run on each incoming packet.

For more examples, please see the examples/ directory.