The product is XM430-W210. I change the Operating Mode of Dynamixel to Current Control Mode (parameter: 0) and write the command value to Goal Current (parameter: 102).
The source code is the Dynamixel SDK example code linked below with rewritten parameters.
Dynamixel SDK example code
Specifically, the following parameters were rewritten. Dynamixel with Operating Mode of Current Control is attached to ID:1, and Dynamixel with Operating Mode of Velocity Control is attached to ID:2.
#define ADDR_PRO_TORQUE_ENABLE 64
#define ADDR_PRO_GOAL_POSITION 102
#define ADDR_PRO_PRESENT_POSITION 126
#define BAUDRATE 1000000
#define DXL_MINIMUM_POSITION_VALUE -50
#define DXL_MAXIMUM_POSITION_VALUE 50
When I change the Operating Mode of Dynamixel and Write to Goal Velocity (parameter: 104) or Goal Position (parameter: 116), it runs. Current Control (Parameter: 102) is not working.
Am I using Current Control incorrectly?