Hi.
I usually used nrf52832 rather than nrf52810 since nrf52832 has an FPU, I rarely considered the computational cost for calculating floating point.
The problem is, I have to use nrf52810 and calculate fractional numbers and trigonometric functions.
This is all the functions that I use. (sine, cosine, square root, addition, subtraction, division, multiplication)
As I know, the CMSIS DSP library is very powerful in calculating fixed-point variables and trigonometric functions.
The library has Q31 or Q15 format but I'm confused about using it right.
Firstly, although the CMSIS DSP library supports fractional numbers between -1 to 1,
I have to calculate the bigger scale of fractional numbers such as 30.12 for example.
Do I have to map each variable to Q31 and bear the mapped variables in mind?
For example, adding 30.12 and 20.54 using CMSIS Library, map the 30.12 into 0.3012 and 20.54 into 0.2054.
and using 0.3012 + 0.2054
Secondly, I found this replies (https://devzone.nordicsemi.com/search?q=libfixmath)
Since this libfixmath library has q16.16 format, I think more it is more flexible to use it for fractional numbers such as 30.12.
But, I'm worried that libfixmath is less powerful than CMSIS Library because libfixmath doesn't support vectors, square root function.