|
@@ -81,6 +81,7 @@ void card_location_base::on_location(const std::vector<point>&vp,const std::vect
|
|
|
{
|
|
|
loc_point pt = m_sel_tool->select_solution(vp,lm);
|
|
|
pt.y=-pt.y;
|
|
|
+ auto site_ptr=get_area_tool()->m_site;
|
|
|
if(pt.m_useless)
|
|
|
{
|
|
|
x = tool_other::round(pt.x,3);
|
|
@@ -93,12 +94,17 @@ void card_location_base::on_location(const std::vector<point>&vp,const std::vect
|
|
|
double acc = lm[0].m_acc;
|
|
|
m_acc = lm[0].m_acc;
|
|
|
log_info("useful:type:%d,card_id:%d,ct:%d,timestamp:%llu, loc_point,x:%f,y:%f acc:%.2f",m_type,m_id,m_ct,m_time,x,y,acc);
|
|
|
+
|
|
|
+ int sid=0,mapid=0;
|
|
|
+ if(site_ptr){sid=site_ptr->m_area_id;mapid=site_ptr->m_map_id;}
|
|
|
+ //if(auto st=m_area_tool->m_site)sid=st->m_area_id;
|
|
|
+ m_his_location_card->push(m_time,pt,sid,mapid);
|
|
|
+
|
|
|
do_business(lm.front().m_sit, pt, acc);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
int sid=0;
|
|
|
- auto site_ptr=get_area_tool()->m_site;
|
|
|
|
|
|
if(site_ptr)
|
|
|
{
|