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

1kHz control rate #8

Open
Sergim96 opened this issue Apr 25, 2024 · 1 comment
Open

1kHz control rate #8

Sergim96 opened this issue Apr 25, 2024 · 1 comment

Comments

@Sergim96
Copy link

Hi all!

According to the specs of the robot, it is possible to control it at 1kHz.
However, I have been struggling to reach any control rate higher than 500Hz.

I have tested this by modifying the lowcmd_development.cpp example by changing the dt attribute and setting it to 1ms.

This change does not seem to have any effect as the function sendRecv seems to be blocking the code and have a hard-coded sleep time of 2ms, which prevents any control higher than 500Hz.

Is there any way to bypass this issue and obtain the advertised 1kHz control rate?

@Agnel-Wang
Copy link
Collaborator

Sorry abot that. The z1 is not enough to support such a high frequency.
This depends on the structure size and baud rate of the RS485 communication with the motor.

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