소스 검색

盲区时间修改为1min,优化历史轨迹

lixioayao 6 년 전
부모
커밋
029cd4a69b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      card_base.h
  2. 1 1
      his_location.h

+ 1 - 1
card_base.h

@@ -7,7 +7,7 @@
 #include "point.h"
 #include "common.h"
 
-#define CARD_LOST_TIME_OUT (30*1000)
+#define CARD_LOST_TIME_OUT (60*1000)
 
 struct task;
 template<typename T> struct zloop;

+ 1 - 1
his_location.h

@@ -76,7 +76,7 @@ struct location_card
 		  return false;
 		point p=m_d.back().p;
 
-		//if(point::eq(p.x,pt.x,0.2) && point::eq(p.y,pt.y,0.2)) return false;
+		if(point::eq(p.x,pt.x,0.2) && point::eq(p.y,pt.y,0.2)) return false;
         double dis1=m_p.dist(pt);
         if(dis1<1.5)
             return false;