Quick Start for Dynamixel Pro v1.00b
Page
92
/
139
else
{
if
(ErrorStatus != 0 )
PrintErrorCode(ErrorStatus);
}
position = -100000;
velocity = 1000;
acceleration = 2;
//Make a tx data
data[0] = DXL_LOBYTE(DXL_LOWORD(position));
data[1] = DXL_HIBYTE(DXL_LOWORD(position));
data[2] = DXL_LOBYTE(DXL_HIWORD(position));
data[3] = DXL_HIBYTE(DXL_HIWORD(position));
data[4] = DXL_LOBYTE(DXL_LOWORD(velocity));
data[5] = DXL_HIBYTE(DXL_LOWORD(velocity));
data[6] = DXL_LOBYTE(DXL_HIWORD(velocity));
data[7] = DXL_HIBYTE(DXL_HIWORD(velocity));
data[8] = DXL_LOBYTE(DXL_LOWORD(acceleration));
data[9] = DXL_HIBYTE(DXL_LOWORD(acceleration));
data[10] = DXL_LOBYTE(DXL_HIWORD(acceleration));
data[11] = DXL_HIBYTE(DXL_HIWORD(acceleration));
//change the position value, moving speed, acceleration using indirect addr
printf(
"Press any key to change the position, speed, acceleration...\n"
);
_getch();
Result = dxl_write(Port, ID, P_INDIRECT_DATA_0, 12, data, &ErrorStatus);
if
( Result != COMM_RXSUCCESS )
{
printf(
"Failed to write!\n"
);
printf(
"Press any key to terminate...\n"
);
_getch();
return
0;
}
else
{
if
(ErrorStatus != 0 )
PrintErrorCode(ErrorStatus);
}
//Close the port of USB2DXL
printf(
"Press any key to terminate...\n"
);
_getch();
dxl_terminate(Port);
return
0;
}
Summary of Contents for Dynamixel Pro
Page 1: ...Quick Start for Dynamixel Pro ...
Page 8: ...Quick Start for Dynamixel Pro v1 00b Page 8 139 ...
Page 33: ...Quick Start for Dynamixel Pro v1 00b Page 33 139 Check Dynamixel PRO firmware update results ...
Page 37: ...Quick Start for Dynamixel Pro v1 00b Page 37 139 Dynamixel PRO firmware recovery is complete ...
Page 66: ...Quick Start for Dynamixel Pro v1 00b Page 66 139 The present temperature is constantly read ...
Page 133: ...Quick Start for Dynamixel Pro v1 00b Page 133 139 2 3 2 42 series H42 L42 ...
Page 136: ...Quick Start for Dynamixel Pro v1 00b Page 136 139 ...
Page 138: ...Quick Start for Dynamixel Pro v1 00b Page 138 139 iii L42 10 S300 R ...
Page 139: ...Quick Start for Dynamixel Pro v1 00b Page 139 139 2 5 Model notation ...