I am using AX-12A motors and I have some questions:
- From the example code of “position mode”, the way to define single motor is “const uint8_t DXL_ID = 1;” so how should I define multi motors in this situation?
I have solved the question by using code below, I am wondering if that the best way to call the motor?
const uint8_t DXL_FIRST_ID = 1;
const uint8_t DXL_SECONDARY_ID = 2;
const uint8_t DXL_THIRD_ID = 3;
- Can I ask how to control the motor rotation speed in the position mode?
But can I ask the exact command for setting the velocity ?
The exact command will vary depending on your specific DYNAMIXEL control solution.
Since you mentioned the DYNAMIXEL Shield in your post title, I would recommend taking a look at the DYNAMIXEL Shield API documentation available on our eManual. The writeControlTableItem() function will allow you to modify any control table item available on your DYNAMIXEL actuator.
Your advice is really helpful! I will have a try later today! Before I start, there is two things I would like to confirm with you:
- I will use the following command to adjust the motor rotate speed:‘dxl.writeControlTable(MOVING_SPEED, DXL_ID, 0)’, is this one correct?
- There are two modes in the ‘AX-12A Moving Speed’ control table description. Joint and Wheel. How should I define which mode I am using?