Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not allow anti rotation in current mode #2

Open
hhcheng13 opened this issue Apr 18, 2024 · 3 comments
Open

Not allow anti rotation in current mode #2

hhcheng13 opened this issue Apr 18, 2024 · 3 comments

Comments

@hhcheng13
Copy link

It does not allow to send the negative current in current control mode. It return: Error using calllib Value exceeds the legal range for the data type.

@geoand-robotdesign
Copy link
Owner

geoand-robotdesign commented Apr 18, 2024 via email

@hhcheng13
Copy link
Author

Thanks for the reply=). I am not sure if I do it correctly. I use the SyncReadSyncWrite.m and modify the

group_num_write = initSyncWriteDxl(lib_name, port_num, protocol_version,...
motor_models, ["Goal Position"; "Goal Velocity"]);
...
syncWriteDxl(lib_name, group_num_write(1), motor_IDs, motor_models, ...
data, 'Goal Position')

into

group_num_write = initSyncWriteDxl(lib_name, port_num, protocol_version,...
motor_models, ["Goal Position"; "Goal Velocity"; "Goal Current"]);
...
syncWriteDxl(lib_name, group_num_write(2), motor_IDs, motor_models, ...
-5*ones(numel(motor_IDs),1), 'Goal Current')

Then it returns "Value exceeds the legal range for the data type."

@geoand-robotdesign
Copy link
Owner

geoand-robotdesign commented Apr 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants