2018-10-12 12:13 AM
2018-10-12 01:14 AM
Use the math lib, or implement a table-based interpolation yourself.
Consider an integer-based solution.
You did not even mention the MCU you are working with.
2018-10-12 02:26 AM
Why do you want to avoid math.h ?
Have you looked at: https://www.keil.com/pack/doc/CMSIS/DSP/html/group__groupFastMath.html
Did you do any research yourself?
eg, google found this: https://digital.library.unt.edu/ark:/67531/metadc283001/
See also: https://en.wikipedia.org/wiki/CORDIC