Quick Start for Dynamixel Pro v1.00b
{
printf(
printf(
_getch();
return
}
param[0] = ID_1;
param[1] = DXL_LOBYTE(DXL_LOWORD(0));
param[2] = DXL_HIBYTE(DXL_LOWORD(0));
param[3] = DXL_LOBYTE(DXL_HIWORD(0));
param[4] = DXL_HIBYTE(DXL_HIWORD(0));
param[5] = ID_2;
param[6] = DXL_LOBYTE(DXL_LOWORD(0));
param[7] = DXL_HIBYTE(DXL_LOWORD(0));
param[8] = DXL_LOBYTE(DXL_HIWORD(0));
param[9] = DXL_HIBYTE(DXL_HIWORD(0));
param[10]= ID_3;
param[11]= DXL_LOBYTE(DXL_LOWORD(0));
param[12]= DXL_HIBYTE(DXL_LOWORD(0));
param[13]= DXL_LOBYTE(DXL_HIWORD(0));
param[14]= DXL_HIBYTE(DXL_HIWORD(0));
printf(
"Press any to change goal position...\n"
_getch();
Result = dxl_sync_write(Port, P_GOAL_POSITION, 4, param, 15);
if( Result != COMM_RXSUCCESS )
{
printf(
printf(
_getch();
return
}
//Close the port of USB2DXL
printf(
"Press any key to terminate...\n"
_getch();
dxl_terminate(Port);
return
0;
}
"Failed to write!\n"
);
"Press any key to terminate...\n"
0;
"Failed to write!\n"
);
"Press any key to terminate...\n"
0;
);
);
);
);
Page 102 / 139
Need help?
Do you have a question about the Dynamixel Pro and is the answer not in the manual?
Questions and answers