This function controls position(joint) of DYNAMIXEL.
const int DXL_DIR_PIN = 2;
Dynamixel2Arduino dxl(Serial1, DXL_DIR_PIN);
dxl.setGoalPosition(1, 512); //use default encoder value
dxl.setGoalPosition(2, 45.0, UNIT_DEGREE); //use angle in degree