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

[Bug] Irregular frequency of rate_ctrl when px4io driver is running #23875

Open
Igor-Misic opened this issue Oct 31, 2024 · 2 comments
Open

[Bug] Irregular frequency of rate_ctrl when px4io driver is running #23875

Igor-Misic opened this issue Oct 31, 2024 · 2 comments

Comments

@Igor-Misic
Copy link
Member

Igor-Misic commented Oct 31, 2024

Describe the bug

I've notice irregular calls in wq:rate_ctrl when px4io drive is running.
For example, control_allocation is expect to run 2.5 [ms] loop but for every 1 [s] it can be seen that is not case.

Here is plot where it can be seen that oscillations are more than double with 1 Hz frequency .
In the first part px4io is running, while in the second part I stopped px4io with stop command and there are not spikes anymore.
image

I've used control_allocation, but it is the same behavior for all loops that use wq:rate_ctrl.

To Reproduce

Use this code to reproduce:
https://github.com/PX4/PX4-Autopilot/tree/test-rate_ctrl_performance

Software Version

v1.14.4 and main

Flight controller

fmu-v5x

@dakejahl
Copy link
Contributor

dakejahl commented Nov 5, 2024

Which hardware? I just tested on pixhawk 5x and cube orange and don't see the issue. Do you need to be armed or have anything else plugged in?

@Igor-Misic
Copy link
Member Author

Igor-Misic commented Nov 5, 2024

@dakejahl thanks for trying to reproduce and interesting observation. I used a Pixhawk fmu-v5x, only connected device is RC at PX4IO with the SBUS protocol.

I also test with fmu-v6x and can't reproduce. It could be related only to STM32F7 boards.

Edit: I've tested when vehicle is armed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants