Skip to content

Commit 5718ae0

Browse files
author
Brandyn A. White
committed
Updated myo
Signed-off-by: Brandyn A. White <[email protected]>
1 parent 918734e commit 5718ae0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

myo.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ Myo
88
<script>
99
function server() {
1010
WS.myoTrain()
11+
// Currently one of {NONE, FIST, FINGERS_SPREAD, WAVE_IN, WAVE_OUT}
1112
WS.gestureCallback('onMyo', function (x) {
1213
WS.say(x);
1314
});
15+
// Value is a quaternion (w, x, y, z) and (pitch, yaw, roll) for convenience
1416
WS.sensorOn('myoOrientation', .15, function (data) {
1517
WS.log('got data: ' + JSON.stringify(data));
1618
});
19+
// 3 axis accel (x, y, z)
1720
WS.sensorOn('myoAccelerometer', .15);
21+
// 3 axis gyro (x, y, z)
1822
WS.sensorOn('myoGyroscope', .15);
1923
WS.dataLog(false, true, .15);
2024
}

0 commit comments

Comments
 (0)