在调试stm32 时出现程序跑飞的情况,debug时发现有一个float的变量为 -nan(ind)和 inf ,也就是在除法时除数为零所致,解决方法如下:
#include <math.h>
isnan(f)
参考:
https://blog.csdn.net/wokaowokaowokao12345/article/details/72846436
在调试stm32 时出现程序跑飞的情况,debug时发现有一个float的变量为 -nan(ind)和 inf ,也就是在除法时除数为零所致,解决方法如下:
#include <math.h>
isnan(f)
参考:
https://blog.csdn.net/wokaowokaowokao12345/article/details/72846436