Looking for a trig function library
Hello ST Community,
I'm working on an application using the STM32F103C8T6 microcontroller that implements a Sliding Mode Observer (SMO) and Park/Clarke transformations. I'm facing significant performance challenges due to the computational overhead of the floating-point trigonometric functions atan2f.
My system requires a 50us loop execution time, but the SMO alone is taking approximately 20us, largely due to these trigonometric functions. I need to optimize this to meet my timing requirements.
Here's a breakdown of my current implementation:
- MCU: STM32F103C8T6
- Application: SMO and Park/Clarke transformations
- Problem: Excessive execution time of and atan2f within a 50us loop.
- Current Performance: SMO takes ~20us.
- Compiler: stm32cubeide
- Optimization Flags: O2
- Clock Frequency: 20khz
Please tell me solution
