51uwb.cn

 找回密码
 立即注册

上位机上传的格式

查看数: 4433 | 评论数: 2 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2019-7-9 16:40

正文摘要:

请问上位机上传的距离是毫米吗,比如标签和基站0的距离为120mm,这里的distance1就为120?

回复

hy864354087 发表于 2019-9-24 17:11:08
不知道,学习学习
tuzhuke 发表于 2019-7-9 17:07:46
是mm 不假,但是你的代码有问题,我们共享资料函数定义如下
  1. //**************************************************************//
  2. //distance1 anthor0 <--> TAG  mm
  3. //distance2 anthor1 <--> TAG  mm
  4. //distance3 anthor2 <--> TAG  mm
  5. //**************************************************************//
  6. static void compute_angle_send_to_anthor0(int distance1, int distance2,int distance3)
  7. {
  8.     static int framenum = 0 ;

  9. #if 0 //compute angle for smartcar
  10.     float dis3_constans = DISTANCE3;
  11.     float cos = 0;
复制代码


而你的截图是uint8,可以表示最大256mm,也就是2米多,超了就溢出了。

bphero Inc.  

GMT+8, 2024-9-23 17:50 , Processed in 0.019349 second(s), 7 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

快速回复 返回顶部 返回列表