Browse Source

呼救信息写到dist-tof日志

zzj 6 years ago
parent
commit
51daae8fbb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      card.cpp

+ 3 - 1
card.cpp

@@ -355,7 +355,9 @@ void card_list::on_message(zloop<task*> *loop,const message_locinfo&loc,bool is_
 	}
 	double dist_tof=loc.m_tof*15.65*2.996*1e-4;
 	logn_info(3,"card_message:site=%d,ant=%d,type=%lu,card=%d,ct=%d,tof=%lld(%.2lfm),rav=%02X,acc=%02X,rssi=%d,stamp=%llu",
-			loc.m_site_id,loc.m_ant_id,loc.m_card_type,loc.m_card_id,loc.m_card_ct,loc.m_tof,dist_tof,loc.m_rav,loc.m_acc,loc.m_rssi,loc.m_time_stamp);
+			loc.m_site_id,loc.m_ant_id,loc.m_card_type,loc.m_card_id,loc.m_card_ct,loc.m_tof,dist_tof,
+			(loc.m_card_type==1?loc.m_callinfo:loc.m_rav),
+			loc.m_acc,loc.m_rssi,loc.m_time_stamp);
 
 	c->on_message(loop,loc,is_history);
 }