1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

CDRFLEx.disable_alter_motion

Features

This function deactivates alter motion.

This function is only available in M2.4 version or higher.

Parameter

None

Return

Value

Description

0

Failed

1

Success

Example

C++
DWORD WINAPI ThreadFunc(void *arg){
while(true){
  float pos[6] = {10, 0, 0, 10, 0, 0};
  Drfl.alter_motion(pos);
  }
}
…
int _tmain (int argc, _TCHAR* argv[]){
  HANDLE hThread; 
  DWORD dwThreadID;
  hThread = CreateThread(NULL, 0, ThreadFunc, NULL, 0, &dwThreadID);
  if (hThread == 0) {
    printf("Thread Error\n");
    return 0;
  }
  float limit_dPOS[2] = {50, 90};
  float limit_dPOS_per[2] = {50, 50};
  Drfl.enable_alter_motion(5, PATH_MODE_DPOS, COORDINATE_SYSTEM_BASE, limit_dPOS, limit_dPOS_per);
  Drfl.disable_alter_motion();.
}