unitreerobotics / unitree_actuator_sdk

BSD 3-Clause "New" or "Revised" License
37 stars 14 forks source link

How to change A1 motor ID? #2

Closed yuna-hyu closed 1 year ago

yuna-hyu commented 1 year ago

How to change A1 motor ID? your code does not work... : (

xiaoliangstd commented 1 year ago

Hello,could you please provide more information? For example, what information does the terminal prompt.

yuna-hyu commented 1 year ago

The terminal screen shown in the datasheet appears as follows:

image

We finished by entering "a" after turning the motor twice. But id is still the same as 0. How do I solve this?

OnlineMC commented 1 year ago

Hello @yuna-hyu, Please check : example/changeID.cpp:16@motor_s.motorType = MotorType::B1; // set the motor type, A1 or B1

If so, please modify it to: MotorType::B1 -> MotorType::A1 and rebuild it.

yuna-hyu commented 1 year ago

Thank you for your answer. Even though I changed the motor type to A1, the ID does not change. :(

yuna-hyu commented 1 year ago

hello:) Changing the ID was successful!

But.. Is there a Python code that can drive the motor? Thanks

xiaoliangstd commented 1 year ago

in the future Release.it will come soon.