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

The difference in close loop control #10

Open
robo-land opened this issue Feb 16, 2022 · 1 comment
Open

The difference in close loop control #10

robo-land opened this issue Feb 16, 2022 · 1 comment

Comments

@robo-land
Copy link

When I try to use this repo to control the odrive motor, when I run the launch file, it will automatically enter in close loop control. However, the close loop control is different with directly setting the odrive to close loop control in terminal. The close loop control of this repo allows the motor to be rotated and will not turn back automatically. While the terminal close loop control does not allow the rotation of motor and have a huge resistance force. I am wondering why? How can I get the mode in terminal set with this repo?

@borongyuan
Copy link
Member

Hi,

This may be a duplicate of #7 . The default configs use velocity controller, this may change odrive's control mode setting. You may need to set up a positon controller for position lock.

Another note is this driver will automatically read the motor's current state (pos, vel, torque) as the initial command when start or switch controllers. This is for safety reasons to avoid state jumps.

Thanks.

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