This function gets present PWM value of DYNAMIXEL.
getLastErrorCode()
to see if this value indicates an error. const int DXL_DIR_PIN = 2;
Dynamixel2Arduino dxl(Serial1, DXL_DIR_PIN);
Serial.print(dxl.getPresentPWM(1)); //use default raw value
Serial.print(dxl.getPresentPWM(2, UNIT_PERCENT)); //use percentage (-100 ~ 100 %)