8000 GitHub - troxel/gyroWit: A node module to communicate with a Wit Motion IMU · GitHub
[go: up one dir, main page]

Skip to content
troxelPublic

About

A node module to communicate with a Wit Motion IMU

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gyroWit

A node module to communicate with a Wit Motion IMU. Specifically this works the WitMotion HWT905 but I suspect will work with other similar Wit Motion devices. In fact, it probably works with any device using the MPU6050 IC.

Synopsis

Gyro = require('./gyrowit');

const gyroConf = { comm:'COM17',baudRate:57600 };

port = Gyro.open(gyroConf);

The module emits a "state" event at the output rate

port.on('state',function() { console.log(State); doSomething(state); };

Where State is an object consisting of

State['angle']     = [angles]
State['angleRate'] = [angle rates]
State['acc']       = [acceleration];

About

A node module to communicate with a Wit Motion IMU

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0