ROBOTIS-GIT / Dynamixel2Arduino

DYNAMIXEL protocol library for Arduino
Apache License 2.0
88 stars 55 forks source link

readControlTableItem #94

Closed THEb0nny closed 2 years ago

THEb0nny commented 2 years ago

Hi, I usually example with https://emanual.robotis.com/docs/en/software/arduino_ide/ for readControlTableItem. dxl.readControlTableItem(PRESENT_VOLTAGE, 1) but it turns out 'PRESENT_VOLTAGE' was not declared in that scope. I would like to get the targetPosition value that the motor should get. This PRESENT_POSITION?

THEb0nny commented 2 years ago

image I found and write the value manually, but this function gives me the value 0.

THEb0nny commented 2 years ago

I forgot to add this... Now everything works. using namespace ControlTableItem;

ROBOTIS-Will commented 2 years ago

@THEb0nny Thanks for the update. Some Arduino boards use an identical definition such as LED so we had to specify our namespace in the D2A library.