Hi,
I'm getting a compile error with the following line of code when changing from IQMath to floating point (done in switch in IQMathLib.h):
clarke1.As=_IQ15toIQ((AdcRegs.ADCRESULT0>>1)-_IQ15(0.55))<<1;
"2xPM_Motors.c", line 656: error: expression must have integral type
Since I'm doing floating point, I could rewrite the code to simple floating point, but I'm curious as to why this no longer compiles? (It appears the last left shift is an issue.)
Thanks.