Linux 平台下 Atan2 导致core dump 问题
Linux 平台下 Atan2 导致core dump 问题
What?
经测试,在linux + RT_Preempt 平台下,<math.h>中的atan2()函数会导致系统core dump, 且随机。
How?
借鉴OpenCV库中的FastAtan2()函数,采用近似公式代替系统函数,精度可以控制在0.0002rad以内
#include <math.h>
#in...
原创
2019-08-16 16:02:33 ·
364 阅读 ·
0 评论