Hi Team,
I'm working on a project that use PM_sincos_lib.h and PM_sincos_lib.C. But I currently have this problem.
- _IQ15toF use invalid
In the program, I can't get the result of IQto15F, but there is no warning or error
Code:
p->itheta = coarseAngle + fineAngle; // IQ15
p->ftheta = _IQ15toF(p->itheta); // floating-point
Result:I thought I should get p->ftheta=0.25 but it didn't. Why is this? How should I modify.
2.And I found that there will be format conflicts. I wonder if this Lib is used in COFF, but we need to run under EABI, so there are the following problems.How should we avoid this problem?
3. I think maybe this Lib is setup under COFF and I am running EABI. If I need to run under EABI, how should I solve this problem so that I can run IQmath.lib and PM_SINCOS.LIB smoothly? (BTW, I use IQmath.lib as shown in the picture).
Thanks for your help.
Jenson