Skip to content

Mach1Studios/ofxWitMotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

Device Setup

  • Change the broadcast name of the HC-06/HC-05 from manufacturing side
  • set the passcode to 0000 so it pairs by default, the default passcode for WitMotion currently is 1234
  • Change the default refresh rate of the device to 200hz

TODO

  • Figure out improvements to drift

Releases

No releases published

Packages

No packages published