-
Notifications
You must be signed in to change notification settings - Fork 3
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
nothing happen with motors while sending command for control drives #10
Comments
I am sorry for the confusion. The CAN firmware actually does not implement a PD controller, you can only send torque commands. I'll have a look into the status of the PD controller implementation when I find some time. Maybe it can be finalised and released. However, at this point I don't want to promise anything. Regarding velocity: What you see is not the maximum velocity but a very small negative value. The velocity is a signed value. Regarding the encoder error: In addition to the normal ticks, the encoder has an "index tick" which appears only once per revolution. Whenever this index tick is observed, the firmware checks if it is at the expected position (e.g. a full revolution after it was seen the last time). If the difference between the observed and the expected position is too large, the error is triggered. |
Thank you very much for the answer, did I understand you correctly that by torque commands you mean sending IqRef for motors? If I implement PID controller for more accuracy in CAN implementation myself, you publicate it in this repository? there is a link to draw.io diagram of |
I sending manually massages to the motor via CAN (according to the CAN Communication Protocol) with raspberry pi 4 B. I sent different commands and I expecting that motors will hold position and follow to reference, but nothing happen https://drive.google.com/file/d/1LtS5n0lSDeGayjM9ZJD-b_18vWQHuJuq/view?usp=sharing.
For example I send
And motors don't hold their reference positions:
When I am getting motor velocities via CAN, there are sharp changes in speed with not the slightest fluctuation of the joint and sometimes the speed is equal to the maximum with a complete lack of movement:
https://drive.google.com/file/d/19Be1c6AE1e3po4SyYLn3NkL7sYe2rJzr/view?usp=sharing
https://drive.google.com/file/d/1dengz049L4UW2oc1zU-DXJd5IyM3HucQ/view?usp=sharing
On some udriver I have got
encoder error
. What does it mean?The text was updated successfully, but these errors were encountered: