|
@@ -357,7 +357,7 @@ struct car_point_filter:select_point_object
|
|
|
{
|
|
|
if(dist2-dist1>3||dist1<=dist3)
|
|
|
{
|
|
|
- printf("reset turning\n");
|
|
|
+ //printf("reset turning\n");
|
|
|
reset_turning(); // may encounter problems
|
|
|
}
|
|
|
return;
|
|
@@ -370,8 +370,8 @@ struct car_point_filter:select_point_object
|
|
|
turning_y=m_turning_pt.y + dist3 * (m_turning_ept.y - m_turning_pt.y) / dist4;
|
|
|
|
|
|
|
|
|
- printf("turning mapping:(%.2f,%.2f)->(%.2f,%.2f),d1:%f,d2:%f,d3:%f\n",
|
|
|
- rpt.x,rpt.y,turning_x,turning_y,dist1,dist2,dist3);
|
|
|
+ //printf("turning mapping:(%.2f,%.2f)->(%.2f,%.2f),d1:%f,d2:%f,d3:%f\n",
|
|
|
+ // rpt.x,rpt.y,turning_x,turning_y,dist1,dist2,dist3);
|
|
|
|
|
|
rpt.set(turning_x,turning_y);
|
|
|
}
|
|
@@ -387,10 +387,10 @@ struct car_point_filter:select_point_object
|
|
|
if(!card_path::inst().is_at_path(rpt)) //if point not on the path
|
|
|
{
|
|
|
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,
|
|
|
- m_d(0).m_tof[0], m_d(0).m_tof[1], pt.x, pt.y);
|
|
|
+ // 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,
|
|
|
+ // m_d(0).m_tof[0], m_d(0).m_tof[1], pt.x, pt.y);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -456,10 +456,10 @@ struct car_point_filter:select_point_object
|
|
|
if(!card_path::inst().is_at_path(pt)) //if point not on the path
|
|
|
{
|
|
|
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,
|
|
|
- m_d(0).m_tof[0], m_d(0).m_tof[1], pt.x, pt.y);
|
|
|
+ // 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,
|
|
|
+ // m_d(0).m_tof[0], m_d(0).m_tof[1], pt.x, pt.y);
|
|
|
return;
|
|
|
}
|
|
|
|