Myo Scol plugin
Functions
Scol functions definition

Functions

int _CRmyoDevice (mmachine m)
 _CRmyoDevice : This function create a MYO object More...
 
int _DSmyoDevice (mmachine m)
 _DSmyoDevice : Destroy MYO object More...
 
int _VibrateMyoDevice (mmachine m)
 _VibrateMyoDevice : Set a vibration period on MYO object More...
 
int _IsMyoDeviceTrained (mmachine m)
 _IsMyoDeviceTrained : Get the trained state of the MYO object (Deprecated) always return 1 More...
 
int _GetMyoArmDirection (mmachine m)
 _GetMyoArmDirection : Get the myo direction on the arm More...
 
int _CBMyoOrientation (mmachine m)
 _CBMyoOrientation : Called on a Orientation data More...
 
int _CBMyoAccel (mmachine m)
 _CBMyoAccel : Called on Acceleration data More...
 
int _CBMyoPose (mmachine m)
 _CBMyoPose : Called on a pose gesture More...
 
int _CBMyoArmRecognized (mmachine m)
 _CBMyoArmRecognized : Called on when the myo is positionned on the arm More...
 
int _CBMyoArmLost (mmachine m)
 _CBMyoArmLost : Called on when the myo is removed from the arm More...
 

Detailed Description

Scol functions definition

Function Documentation

◆ _CBMyoAccel()

int _CBMyoAccel ( mmachine  m)

_CBMyoAccel : Called on Acceleration data

fun [ObjMyo fun [ObjMyo u0 [F F F]] u1 u0] ObjMyo

Parameters
ObjMyo: MYO Object
fun[ObjMyo u0 [F F F]] u1 : SCOL CallBack function to call
-[F F F] : acceleration vector
u0: user parameter
Returns
ObjMyo : the same object

Definition at line 373 of file scolplugin.cpp.

◆ _CBMyoArmLost()

int _CBMyoArmLost ( mmachine  m)

_CBMyoArmLost : Called on when the myo is removed from the arm

fun [ObjMyo fun [ObjMyo u0] u1 u0] ObjMyo

Parameters
ObjMyo: MYO Object
fun[ObjMyo u0] u1 : SCOL CallBack function to call
u0: user parameter
Returns
ObjMyo : the same object

Definition at line 536 of file scolplugin.cpp.

◆ _CBMyoArmRecognized()

int _CBMyoArmRecognized ( mmachine  m)

_CBMyoArmRecognized : Called on when the myo is positionned on the arm

fun [ObjMyo fun [ObjMyo u0 I] u1 u0] ObjMyo

Parameters
ObjMyo: MYO Object
fun[ObjMyo u0 I] u1 : SCOL CallBack function to call
u0: user parameter
I: 1 for Left arm, 0 for Right arm
Returns
ObjMyo : the same object

Definition at line 504 of file scolplugin.cpp.

◆ _CBMyoOrientation()

int _CBMyoOrientation ( mmachine  m)

_CBMyoOrientation : Called on a Orientation data

fun [ObjMyo fun [ObjMyo u0 [F F F F]] u1 u0] ObjMyo

Parameters
ObjMyo: MYO Object
fun[ObjMyo u0 [F F F F]] u1 : SCOL CallBack function to call
-[F F F F] : Quaternion
u0: user parameter
Returns
ObjMyo : the same object

Definition at line 321 of file scolplugin.cpp.

◆ _CBMyoPose()

int _CBMyoPose ( mmachine  m)

_CBMyoPose : Called on a pose gesture

fun [ObjMyo fun [ObjMyo u0 I] u1 u0] ObjMyo

Parameters
ObjMyo: MYO Object
fun[ObjMyo u0 I] u1 : SCOL CallBack function to call
-I : Pose type
u0: user parameter
Returns
ObjMyo : the same object

Definition at line 424 of file scolplugin.cpp.

◆ _CRmyoDevice()

int _CRmyoDevice ( mmachine  m)

_CRmyoDevice : This function create a MYO object

Prototype: fun [Chn fun [ObjMyo u0] u1 u0 fun [ObjMyo u0] u1 u0] ObjMyo

Parameters
Chn: channel
fun[ObjMyo u0] u1 : callback on connected
u0: connected callback parameter
fun[ObjMyo u0] u1 : callback on disconnected
u0: disconnected callback parameter
Returns
ObjMyo : the MYO object if success, NIL otherwise

Definition at line 117 of file scolplugin.cpp.

◆ _DSmyoDevice()

int _DSmyoDevice ( mmachine  m)

_DSmyoDevice : Destroy MYO object

fun [ObjMyo] I

Parameters
ObjMyo: MYO Object to destroy
Returns
I : 0 if success, NIL otherwise

Definition at line 181 of file scolplugin.cpp.

◆ _GetMyoArmDirection()

int _GetMyoArmDirection ( mmachine  m)

_GetMyoArmDirection : Get the myo direction on the arm

fun [ObjMyo] I

Parameters
ObjMyo: MYO Object
Returns
I : 1 if the myo is placed toward the twist, -1 if not, NIL otherwise

Definition at line 279 of file scolplugin.cpp.

◆ _IsMyoDeviceTrained()

int _IsMyoDeviceTrained ( mmachine  m)

_IsMyoDeviceTrained : Get the trained state of the MYO object (Deprecated) always return 1

fun [ObjMyo] I

Parameters
ObjMyo: MYO Object
Returns
I : 0 if not trained, 1 if trained, NIL otherwise

Definition at line 250 of file scolplugin.cpp.

◆ _VibrateMyoDevice()

int _VibrateMyoDevice ( mmachine  m)

_VibrateMyoDevice : Set a vibration period on MYO object

fun [ObjMyo I] I

Parameters
ObjMyo: MYO Object
I: Vibration period, 0 short, 1 medium, 2 long
Returns
I : 0 if success, NIL otherwise

Definition at line 211 of file scolplugin.cpp.