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

Maximum RPM Command Rate #45

Closed
alspitz opened this issue Dec 22, 2019 · 1 comment
Closed

Maximum RPM Command Rate #45

alspitz opened this issue Dec 22, 2019 · 1 comment

Comments

@alspitz
Copy link

alspitz commented Dec 22, 2019

Does Sapog have any limitations on maximum RPM command rate over UAVCAN?

In the PX4 Firmware, there is a hardcoded 200 Hz limit in the uavcan code. I am able to send commands at around 500 Hz to four Kotleta20 ESCs, but when I attempt to send RPM commands at 1000 Hz, the ESCs will reboot after about 10 seconds of operation. After reboot, they work again for about 10 seconds, then reboot again. Occasionally, only one of the four ESCs on my quadrotor will reboot.

Is there a maximum rate at which Sapog can handle incoming commands without rebooting?

@pavel-kirienko
Copy link
Member

Does Sapog have any limitations on maximum RPM command rate over UAVCAN?

Not explicitly, no. The implicit limit is due to the limited processing power available. By sending commands at 1000 Hz, you exhaust the available computing resources, causing CPU starvation in low-priority threads. Eventually, this leads to the watchdog timing out (the timeout is 10 seconds).

Things should improve after #42 is done. We could use help with that, by the way.

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