您好,
我尝试使用 IQmath 库计算此除法:
//(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
我在“Encoder.h”文件中将 global_Q 重新定义为10。 并试图将结果转换为浮点,但结果总是567497
我认为这可能是与相关帖子相同的问题,但无法找到如何解决这一问题... 我从未使用过 IQ 库,因此任何评论都非常受人赞赏,
谢谢你,
Joan Marc