Robotis Dynamixel Pro Quick Start Manual page 65

Table of Contents

Advertisement

Quick Start for Dynamixel Pro v1.00b
{
SerialPort sp = {0,0,0,0,0};
SerialPort *Port = &sp;
//Open the port of USB2DXL
if(dxl_initialize(Port, COM_PORT_NUM, BAUD_RATE_NUM) == COMM_RXSUCCESS )
printf("Succeed to open
else
{
printf(
printf(
_getch();
return
}
int
Result, ErrorStatus;
printf("Press any key to terminate...\n"
printf("\n");
int
temp;
while(true)
{
if(_kbhit())
//Read the present temperature
Result = dxl_read_byte(Port, ID,
if( Result != COMM_RXSUCCESS )
{
}
else
{
}
printf("\r");
printf("current temperature :
}
//Close the port of USB2DXL
dxl_terminate(Port);
return
0;
}
USB2Dynamixel!\n");
"Failed to open USB2Dynamixel!\n"
"Press any key to terminate...\n"
0;
break;
P_PRESENT_TEMPERATURE, &temp, &ErrorStatus);
printf(
"Failed to write!\n"
printf(
"Press any key to terminate...\n"
_getch();
return
0;
PrintErrorCode(ErrorStatus);
%d", temp);
);
);
);
);
);
Page 65 / 139

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Dynamixel Pro and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents