|
@@ -9,6 +9,7 @@ loc_point::loc_point()
|
|
|
:m_time(0)
|
|
|
,m_ct(-1)
|
|
|
,m_cid(-1)
|
|
|
+ ,m_type(-1)
|
|
|
,m_sid(-1)
|
|
|
,m_acc(0)
|
|
|
,m_rav(0)
|
|
@@ -49,12 +50,12 @@ void loc_point::debug_out(const char *str)const
|
|
|
{
|
|
|
char time_buff[128];
|
|
|
#if 1
|
|
|
- logn_info(3,"t=%s,sit=%d,card=%d,ct=%d,cred=%d,"
|
|
|
+ logn_info(3,"t=%s,sit=%d,card=%d,ct=%d,cred=%d,type=%d"
|
|
|
"tof1=%d,tof2=%d,pt=(%.2lf,"
|
|
|
"%.2lf),rsp=%d,acc=%.2f,dist=%.2lf,dist1=%.2lf,dist2=%.2lf,rav=%.2f,speed:%.2f\n",
|
|
|
now(time_buff,m_time), m_sid,
|
|
|
m_cid,
|
|
|
- m_ct, m_cred_level,
|
|
|
+ m_ct, m_cred_level,m_type,
|
|
|
m_tof[0], m_tof[1], x,
|
|
|
y ,(m_rsp[0]+m_rsp[1])>>1,m_acc,
|
|
|
m_dist1,m_dist,m_dist2, m_rav,m_speed
|
|
@@ -89,6 +90,7 @@ void loc_point::set_source(const loc_message&li,const loc_message&li2)
|
|
|
{
|
|
|
m_sid = li.m_sit->m_id;
|
|
|
m_cid = li.m_card_id;
|
|
|
+ m_type=li.m_card_type;
|
|
|
m_time=std::min(li.m_loc_time,li2.m_loc_time);
|
|
|
m_ct=li.m_card_ct;
|
|
|
m_acc=li.m_acc *10;// 1270.;
|
|
@@ -104,6 +106,7 @@ void loc_point::set_source(const loc_message&li)
|
|
|
{
|
|
|
m_sid = li.m_sit->m_id;
|
|
|
m_cid = li.m_card_id;
|
|
|
+ m_type=li.m_card_type;
|
|
|
m_time=li.m_loc_time;
|
|
|
m_ct=li.m_card_ct;
|
|
|
m_acc=li.m_acc *10;// 1270.;
|