ROBOTIS-GIT / DynamixelShield

DynamixelShield Library for Arduino
Apache License 2.0
17 stars 10 forks source link

Writing PID Gains to MX64 #25

Closed grndctrl2majtom closed 3 years ago

grndctrl2majtom commented 3 years ago

Hello, I'm having some issues writing PID commands to the MX64. It does not appear to actually be assigning the gains to the motor. Here is how I am doing it.

dxl.writeControlTableItem(POSITION_P_GAIN,1,254); dxl.writeControlTableItem(POSITION_D_GAIN,1,50); dxl.writeControlTableItem(POSITION_I_GAIN,1,200);

FIXED: the values have to be assigned in the loop not the setup

ROBOTIS-Will commented 3 years ago

Hi, thank you for the update. The read / writeControlTableItem functions can actually be located in the setup function depending on your software design. And these are located in the RAM area, so you should set these values every time system is turned on. Thanks!

ROBOTIS-Will commented 3 years ago

This issue will be closed as there isn't recent activity. Please feel free to reopen when necessary.