/ofxWitMotion

OF Addon for handling WitMotion IMUs

Primary LanguageC++MIT LicenseMIT

ofxWitmotion

Witmotion addon for OpenFrameworks

Development Support and special thanks Qaotech Studio

Ported from the official documentation example C++ code https://github.com/WITMOTION/BWT901CL

Quick example:

ofApp.h

    witmotionController wmc;

ofApp.cpp

    // in ofApp::setup()
    wmc.setup();
    wmc.connectDevice(int DEVICE_ID);
    
    // in ofApp::update()
    wmc.update();
    wmc.getAcceleration();
    wmc.getGyro();
    wmc.getAngle();
    wmc.getMagneticField();