Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

thalmiclabs/myojs-vector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myojs-vector

North (formerly Thalmic Labs), the creator of the Myo armband, was acquired by Google in June 2020. Myo sales ended in October 2018 and Myo software, hardware and SDKs are no longer available or supported. Learn more.

A plugin for Myo.js that provides rotational vectors.

See it in action here (requires a myo!)

Whenever the Myo receives an orientation event, it will now emit a vector event, with a data object that was a x, y, and theta, all ranging from -1 to 1.

Note: These numbers are very dependant on the Myo being orientated properly. Make sure to use myo.zeroOrientation() often to correct for any drift.

	Myo.on('vector', function(vector){
		console.log('x', vector.x);
		console.log('y', vector.y);
		console.log('theta', vector.theta);
	});

applications

This can be used for mouse control on webpages, or zone detection to reduce false positives for poses. eg. Only accept poses while the user has their arm down to their side (helps with hand talkers).

Check out the demo for an example of how to use it.

About

A plugin for myo.js that provides rotational vectors.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published