Project

General

Profile

Up

Myo

MYO by Thalmic Labs interface for Scol.

API

  • ObjMyo : a Myo device Scol object

  • _CRmyoDevice : This function create a MYO object.
    fun [Chn fun [ObjMyo u0] u1 u0 fun [ObjMyo u0] u1 u0] ObjMyo

    The first callback is "connected event", the second callback is "disconnected event".

  • _DSmyoDevice : Destroy a MYO object
    fun [ObjMyo] I

  • _VibrateMyoDevice : Set a vibration period on MYO object
    fun [ObjMyo I] I

    The vibration period can be 0 for short, 1 for medium, 2 for long. 0 if returned if success.

  • _IsMyoDeviceTrained : Get the trained state of the MYO object (Deprecated) always return 1
    fun [ObjMyo] I

  • _GetMyoArmDirection : Get the myo direction on the arm
    fun [ObjMyo] I

    Return 1 if the myo is placed toward the twist, -1 if not, NIL otherwise

  • _CBMyoOrientation : Called on a Orientation data
    fun [ObjMyo fun [ObjMyo u0 [F F F F]] u1 u0] ObjMyo

    fun [ObjMyo u0 [F F F F]] u1 : SCOL CallBack function to call
    [F F F F] : Quaternion

  • _CBMyoAccel : Called on Acceleration data
    fun [ObjMyo fun [ObjMyo u0 [F F F]] u1 u0] ObjMyo

    fun [ObjMyo u0 [F F F]] u1 : SCOL CallBack function to call
    [F F F] : acceleration vector

  • _CBMyoPose : Called on a pose gesture
    fun [ObjMyo fun [ObjMyo u0 I] u1 u0] ObjMyo

    fun [ObjMyo u0 I] u1 : SCOL CallBack function to call
    I : Pose type

  • _CBMyoArmRecognized
    fun [ObjMyo fun [ObjMyo u0 I] u1 u0] ObjMyo

    fun [ObjMyo u0 I] u1 : SCOL CallBack function to call
    I : 1 for Left arm, 0 for Right arm

  • _CBMyoArmLost
    fun [ObjMyo fun [ObjMyo u0] u1 u0] ObjMyo

    fun [ObjMyo u0] u1 : SCOL CallBack function to call

Example

Note