Part Number: TMS320F28069
Hello,
I was trying to use the IQmath library, to calculate this division:
//(in the header file "Encoder.h" speediq is defined as:) double speed; //(...) //And then in the Encoder.c file i did as follows: //p->speed = 105468.75f/temp1; //the division i want to make p->speed = _IQtoF(_IQdiv(_IQ(105468.75),_IQ(temp1))); //The division using IQ
I redefined GLOBAL_Q to 10 in the "Encoder.h" file. And tried to convert the result to float but the result is allways 567497
I think it may be the same issue as the related post, but couldn't find how was this solved... I have never used the IQ library so any comment is very much apreciated,
Thank you,
Joan Marc