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

setGoalVelocity with UNIT_PERCENT not mapping to actual max velocity #64

Open
devdrik opened this issue May 7, 2021 · 1 comment
Open
Labels
bug Something isn't working

Comments

@devdrik
Copy link

devdrik commented May 7, 2021

When using setGoalVelocity with unit set to UNIT_PERCENT I would expect it to be mapped to the servos max velocity. But instead the servo reaches max speed at around 21% and setGoalVelocity returns false for values above.

Tested on Arduino MKR WiFi 1010 with Dynamixel Shield for Arduino Series.
Servo: DYNAMIXEL XL330-M288-T
Power Supply: 5V (external through Shield)

@ROBOTIS-Will
Copy link
Collaborator

Hi @devdrik
Thank you for bring up this issue.
The reason that the velocity in percentage doesn't work correctly is that the library defines the maximum value based on the maximum available in the control table.
https://github.com/ROBOTIS-GIT/Dynamixel2Arduino/blob/master/src/Dynamixel2Arduino.cpp#L1128
However, the actual value is set to more realistic and effective value, therefore, entering to a higher percentage will be neglected from DYNAMIXEL.
I'll review this issue and see how the library can better explain the use of the function.
Thank you.

@ROBOTIS-Will ROBOTIS-Will added the bug Something isn't working label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants