This function controls current of DYNAMIXEL.
const int DXL_DIR_PIN = 2;
Dynamixel2Arduino dxl(Serial1, DXL_DIR_PIN);
dxl.setGoalCurrent(1, 100); //use default raw value
dxl.setGoalCurrent(2, 1000.0, UNIT_MILLI_MAPERE); //use mA
dxl.setGoalCurrent(3, 50.0, UNIT_PERCENT); //use percentage (-100 ~ 100 %)