Browse Source

优化历史轨迹点

lixioayao 5 years ago
parent
commit
fe076053be
1 changed files with 4 additions and 2 deletions
  1. 4 2
      his_location.h

+ 4 - 2
his_location.h

@@ -104,7 +104,8 @@ struct location_card
        //         df=1;return false;
        //     }
        // }
-		return !point::eq(arg,m_arg,1e-10);
+		//return !point::eq(arg,m_arg,1e-10);
+		return !change_flag;
 	}
 	bool is_speed_changed(const point& pt,uint64_t time)
 	{
@@ -263,7 +264,8 @@ struct location_card
 		if(line_changed(p))//,df))
         {
             flag = true;
-            std::vector<point> rc=find_path(m_d.back().p,p);
+            //std::vector<point> rc=find_path(m_d.back().p,p);
+            std::vector<point> rc=find_path(m_p,p);
             if(rc.empty())
             {
 			    log_info("his_location:line_changed rc.empty() %d",m_cardid);