|
@@ -23,7 +23,7 @@ loc_point::loc_point()
|
|
,m_smooth_y(0)
|
|
,m_smooth_y(0)
|
|
{
|
|
{
|
|
memset(&m_tof,0,sizeof(m_tof));
|
|
memset(&m_tof,0,sizeof(m_tof));
|
|
- //memset(&m_rsp,0,sizeof(m_rsp));
|
|
|
|
|
|
+ memset(&m_rsp,0,sizeof(m_rsp));
|
|
}
|
|
}
|
|
|
|
|
|
loc_point& loc_point::reset()
|
|
loc_point& loc_point::reset()
|
|
@@ -51,13 +51,12 @@ void loc_point::debug_out(const char *str)const
|
|
#if 1
|
|
#if 1
|
|
log_info("[%s]t=%s,sit=%d,card=%d,ct=%d,cred=%d,"
|
|
log_info("[%s]t=%s,sit=%d,card=%d,ct=%d,cred=%d,"
|
|
"tof1=%d,tof2=%d,pt=(%.2lf,"
|
|
"tof1=%d,tof2=%d,pt=(%.2lf,"
|
|
- "%.2lf),rsp=1,acc=%.2f,dist=%.2lf,dist1=%.2lf,dist2=%.2lf,rav=%.2f,speed:%.2f\n",
|
|
|
|
|
|
+ "%.2lf),rsp=%d,acc=%.2f,dist=%.2lf,dist1=%.2lf,dist2=%.2lf,rav=%.2f,speed:%.2f\n",
|
|
str,now(time_buff,m_time), m_sid,
|
|
str,now(time_buff,m_time), m_sid,
|
|
m_cid,
|
|
m_cid,
|
|
m_ct, m_cred_level,
|
|
m_ct, m_cred_level,
|
|
m_tof[0], m_tof[1], x,
|
|
m_tof[0], m_tof[1], x,
|
|
- //y ,(int)(m_rsp[0]+m_rsp[1])/2,m_acc,
|
|
|
|
- y ,m_acc,
|
|
|
|
|
|
+ y ,(int)(m_rsp[0]+m_rsp[1])/2,m_acc,
|
|
m_dist1,m_dist,m_dist2, m_rav,m_speed
|
|
m_dist1,m_dist,m_dist2, m_rav,m_speed
|
|
);
|
|
);
|
|
#else
|
|
#else
|
|
@@ -96,6 +95,8 @@ void loc_point::set_source(const loc_message&li,const loc_message&li2)
|
|
m_rav=li.m_rav;
|
|
m_rav=li.m_rav;
|
|
m_tof[li.m_ant_id]=li.m_num_ticks;
|
|
m_tof[li.m_ant_id]=li.m_num_ticks;
|
|
m_tof[li2.m_ant_id]=li2.m_num_ticks;
|
|
m_tof[li2.m_ant_id]=li2.m_num_ticks;
|
|
|
|
+ m_rsp[li.m_ant_id]=li.m_rssi;
|
|
|
|
+ m_rsp[li2.m_ant_id]=li2.m_rssi;
|
|
m_step=0;
|
|
m_step=0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -109,5 +110,7 @@ void loc_point::set_source(const loc_message&li)
|
|
m_rav=li.m_rav;
|
|
m_rav=li.m_rav;
|
|
m_tof[li.m_ant_id]=li.m_num_ticks;
|
|
m_tof[li.m_ant_id]=li.m_num_ticks;
|
|
m_tof[li.m_ant_id?0:1]=0;
|
|
m_tof[li.m_ant_id?0:1]=0;
|
|
|
|
+ m_rsp[li.m_ant_id]=li.m_rssi;
|
|
|
|
+ m_rsp[li.m_ant_id?0:1]=0;
|
|
m_step=0;
|
|
m_step=0;
|
|
}
|
|
}
|