更新:1、调整临时航迹记录时机,在转为可靠航迹前记录,避免转为正式航迹后丢失当前帧的临时航迹记录;
Signed-off-by: waiwaylee <waiwaylee@foxmail.com>
This commit is contained in:
@@ -107,6 +107,15 @@ int Track_Init::track_init_process_logic( std::vector <PointRecv>
|
|||||||
std::vector<PointRecv>().swap(point_process);
|
std::vector<PointRecv>().swap(point_process);
|
||||||
std::vector<PointRecv>().swap((*point_recv));
|
std::vector<PointRecv>().swap((*point_recv));
|
||||||
|
|
||||||
|
#ifdef RDP_RECORD_ENABLE
|
||||||
|
//记录临时航迹
|
||||||
|
for(auto& vec_t : *temp_track){
|
||||||
|
for(auto& t : vec_t){
|
||||||
|
RDP_RECORD(RdpRecTempTrack(t));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//临时航迹满足起始长度 转为可靠航迹
|
//临时航迹满足起始长度 转为可靠航迹
|
||||||
tmp_track_to_trust_track(trust_track,temp_track,Trust_Track_Output, Trust_track_num_Output,Work_Parameter);
|
tmp_track_to_trust_track(trust_track,temp_track,Trust_Track_Output, Trust_track_num_Output,Work_Parameter);
|
||||||
|
|
||||||
@@ -115,14 +124,6 @@ int Track_Init::track_init_process_logic( std::vector <PointRecv>
|
|||||||
//消亡临时航迹
|
//消亡临时航迹
|
||||||
tmp_track_die(temp_track);
|
tmp_track_die(temp_track);
|
||||||
|
|
||||||
#ifdef RDP_RECORD_ENABLE
|
|
||||||
//记录临时航迹
|
|
||||||
for(auto& vec_t : *temp_track){
|
|
||||||
for(auto& t : vec_t){
|
|
||||||
RDP_RECORD(RdpRecTempTrack(t));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user