上位机上传的格式
请问上位机上传的距离是毫米吗,比如标签和基站0的距离为120mm,这里的distance1就为120?是mm 不假,但是你的代码有问题,我们共享资料函数定义如下//**************************************************************//
//distance1 anthor0 <--> TAGmm
//distance2 anthor1 <--> TAGmm
//distance3 anthor2 <--> TAGmm
//**************************************************************//
static void compute_angle_send_to_anthor0(int distance1, int distance2,int distance3)
{
static int framenum = 0 ;
#if 0 //compute angle for smartcar
float dis3_constans = DISTANCE3;
float cos = 0;
而你的截图是uint8,可以表示最大256mm,也就是2米多,超了就溢出了。
不知道,学习学习
页:
[1]