|
@@ -197,10 +197,24 @@ struct person_point_filter:select_point_object
|
|
|
select_one_ant(c,vp);
|
|
|
}
|
|
|
loc_point &refc=m_d(1);
|
|
|
- if(c.m_type==4 && c.cl()<=20 && refc.is_same_site(c) && refc.time_off(c)<3 && vp.size(0)>=2)
|
|
|
- {
|
|
|
- log_info("{test_lemon}first point:site=%d,card=%d,(%f,%f) else:(%f,%f),cred:%d,size:%d",c.m_sid,c.m_cid,vp[0].x,vp[0].y,vp[1].x,vp[1].y,c.cl(),vp.size());
|
|
|
- }
|
|
|
+ if(c.m_type==4 && c.cl()<=20 && refc.is_same_site(c) && refc.time_off(c)<5 ){
|
|
|
+ logn_info(3,"{test_lemon}first point:site=%d,card=%d,(%f,%f) else:(%f,%f),cred:%d,size:%d",c.m_sid,c.m_cid,c[0].x,c[0].y,c[1].x,c[1].y,c.cl(),vp.size());
|
|
|
+ if(const auto & site_ptr=sit_list::instance()->get(c.m_sid)){
|
|
|
+ double d1=0,d2=0,d3=0;
|
|
|
+ d1=refc.m_dist1;
|
|
|
+ d2=site_ptr->dist_direct(c[0]);
|
|
|
+ d3=site_ptr->dist_direct(c[1]);
|
|
|
+ if(d1*d2<0 && d1*d3>0){
|
|
|
+ logn_info(3,"{test_lemon+++++++}first point:site=%d,card=%d,(%f,%f) else:(%f,%f),cred:%d,size:%d",c.m_sid,c.m_cid,c[0].x,c[0].y,c[1].x,c[1].y,c.cl(),vp.size());
|
|
|
+ point t=c[0];
|
|
|
+ c[0]=c[1];
|
|
|
+ c[1]=t;
|
|
|
+ c.set_cl(0);
|
|
|
+ }
|
|
|
+ else if(d1*d2<0 && d1*d3<0)
|
|
|
+ c[0].set(refc);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
virtual fit_result * get_best_fit()
|
|
|
{
|
|
@@ -398,7 +412,7 @@ struct car_point_filter:select_point_object
|
|
|
|
|
|
if(!card_path::inst().is_at_path(rpt)) //if point not on the path
|
|
|
{
|
|
|
- //lp.debug_out();
|
|
|
+ lp.debug_out();
|
|
|
// printf("out of path:t=%ld,sit=%d,card=l,ct=%d,"
|
|
|
// "tof1=%d,tof2=%d,pt=(%.2lf,%.2lf)\n",
|
|
|
// m_d(0).m_time, m_d(0).m_sid,m_d(0).m_ct,
|
|
@@ -469,7 +483,7 @@ struct car_point_filter:select_point_object
|
|
|
|
|
|
if(!card_path::inst().is_at_path(pt)) //if point not on the path
|
|
|
{
|
|
|
- //lp.debug_out();
|
|
|
+ lp.debug_out();
|
|
|
// printf("out of path:t=%ld,sit=%d,card=0,ct=%d,"
|
|
|
// "tof1=%d,tof2=%d,pt=(%.2lf,%.2lf)\n",
|
|
|
// m_d(0).m_time, m_d(0).m_sid,m_d(0).m_ct,
|