Quick Start for Dynamixel Pro v1.00b
_getch();
Result = dxl_write_byte(Port, ID, P_OPERATING_MODE, 1, &ErrorStatus);
if( Result != COMM_RXSUCCESS )
{
printf(
printf(
_getch();
return
}
else
{
if(ErrorStatus != 0 )
else
}
//Torque On
printf(
"Torque On...\n"
Result = dxl_write_byte(Port, ID, P_TORQUE_ENABLE, 1, &ErrorStatus);
if( Result != COMM_RXSUCCESS )
{
printf(
printf(
_getch();
return
}
//Change the Goal Velocity
printf("Press any key to change goal
_getch();
Result = dxl_write_dword(Port, ID, P_GOAL_VELOCITY, 5000, &ErrorStatus);
if( Result != COMM_RXSUCCESS )
{
printf(
printf(
_getch();
return
}
else
{
if(ErrorStatus != 0 )
else
}
printf("Press any key to terminate...\n"
printf("\n");
"Failed to write!\n"
);
"Press any key to terminate...\n"
0;
PrintErrorCode(ErrorStatus);
printf("Succeed to chage the operationg
);
"Failed to write!\n"
);
"Press any key to terminate...\n"
0;
velocity...\n");
"Failed to write!\n"
);
"Press any key to terminate...\n"
0;
PrintErrorCode(ErrorStatus);
printf("Succeed to chage the operationg
);
mode!\n");
);
);
mode!\n");
);
Page 74 / 139
Need help?
Do you have a question about the Dynamixel Pro and is the answer not in the manual?
Questions and answers