-
Notifications
You must be signed in to change notification settings - Fork 93
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
pid_ctrl: support use IQmath to compute (IEC-54) #243
Comments
After testing, it seems that modifying it to use IQmath calculations does not accelerate the PID computation time. Using IQmath on the ESP32C3 is actually slower than not using it. It's worth mentioning that with the same code, the computation speed on ESP32S3 is 11 times faster than on ESP32C3. Is there a way to make the computation on ESP32C3 faster? |
On ESP32-C2, C6 and P4, there is an alternative floating point library (rvfplib) in ROM. You can try enabling it using CONFIG_COMPILER_FLOAT_LIB_FROM_RVFPLIB option in menuconfig. (You can also post a link to your benchmarking code, if you don't have time to try rvfplib.) If enabling this option helps, we can open a feature request in IDF to support rvfplib also on chips which don't have it in the ROM (C3, H2). |
Yes, iggr, please do open that feature request (to support RVfplib on the C3, etc) ! https://www.research-collection.ethz.ch/handle/20.500.11850/582612 |
Is your feature request related to a problem?
No response
Describe the solution you'd like.
Describe alternatives you've considered.
No response
Additional context.
In chips like the esp32c3 that lack a floating-point computation unit, using floating-point calculations can incur significant system overhead
The text was updated successfully, but these errors were encountered: