Robotis Dynamixel Pro Quick Start Manual page 68

Table of Contents

Advertisement

Quick Start for Dynamixel Pro v1.00b
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 position
Result = dxl_read_dword(Port, ID, P_PRESENT_POSITION, (unsigned*)&temp,
&ErrorStatus);
if( Result != COMM_RXSUCCESS )
{
}
else
{
}
printf("\r");
printf("present position :
}
//Close the port of USB2DXL
dxl_terminate(Port);
return
0;
}
-
The Present Position is shown when the program is initiated.
USB2Dynamixel!\n");
"Failed to open USB2Dynamixel!\n"
"Press any key to terminate...\n"
0;
break;
printf(
"Failed to write!\n"
printf(
"Press any key to terminate...\n"
_getch();
return
0;
PrintErrorCode(ErrorStatus);
%d", temp);
);
);
);
);
);
Page 68 / 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

Table of Contents