目标凝聚条件 dot_coh根据不同模式设置
进程模式 距离、速度、方位 中程模式 距离 方位 Signed-off-by: Yang Jianchao <yangjianchao999@126.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 4.0.2, 2022-05-31T14:55:07. -->
|
<!-- Written by QtCreator 4.0.2, 2022-06-01T21:51:14. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ int Dot_Coh::dot_coh_process(QVector <PointRecv> *data_input,
|
|||||||
float point_1_A=data_buffer[i].Amplitude;
|
float point_1_A=data_buffer[i].Amplitude;
|
||||||
|
|
||||||
//凝聚条件: 距离、方位接近
|
//凝聚条件: 距离、方位接近
|
||||||
// if(Work_Parameter.work_mode == 0)
|
if(Work_Parameter.work_mode == 0)
|
||||||
// {
|
{
|
||||||
if( (fabs(point_0_R-point_1_R)<=DOT_COH_RANGE && fabs(point_0_F-point_1_F) <=DOT_COH_AZI/180.0*PI && fabs(point_0_V-point_1_V)<=DOT_COH_V)//
|
if( (fabs(point_0_R-point_1_R)<=DOT_COH_RANGE && fabs(point_0_F-point_1_F) <=DOT_COH_AZI/180.0*PI && fabs(point_0_V-point_1_V)<=DOT_COH_V)//
|
||||||
&& point_0_A <point_1_A )//
|
&& point_0_A <point_1_A )//
|
||||||
{
|
{
|
||||||
@@ -84,27 +84,27 @@ int Dot_Coh::dot_coh_process(QVector <PointRecv> *data_input,
|
|||||||
{
|
{
|
||||||
data_buffer[i].Use_Flag=1;
|
data_buffer[i].Use_Flag=1;
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// if( (fabs(point_0_R-point_1_R)<=DOT_COH_RANGE && fabs(point_0_F-point_1_F) <=DOT_COH_AZI/180.0*PI )//
|
if( (fabs(point_0_R-point_1_R)<=DOT_COH_RANGE && fabs(point_0_F-point_1_F) <=DOT_COH_AZI/180.0*PI )//
|
||||||
// && point_0_A <point_1_A )//
|
&& point_0_A <point_1_A )//
|
||||||
// {
|
{
|
||||||
// point_0_R=data_buffer[i].Range;
|
point_0_R=data_buffer[i].Range;
|
||||||
// point_0_V=data_buffer[i].Velocity;
|
point_0_V=data_buffer[i].Velocity;
|
||||||
// point_0_A=data_buffer[i].Amplitude;
|
point_0_A=data_buffer[i].Amplitude;
|
||||||
// point_0_F=data_buffer[i].Azimuth;
|
point_0_F=data_buffer[i].Azimuth;
|
||||||
// data_buffer[loop_of_point].Use_Flag=1;
|
data_buffer[loop_of_point].Use_Flag=1;
|
||||||
// }
|
}
|
||||||
// else if( (fabs(point_0_R-point_1_R)<=DOT_COH_RANGE && fabs(point_0_F-point_1_F) <=DOT_COH_AZI/180.0*PI )//
|
else if( (fabs(point_0_R-point_1_R)<=DOT_COH_RANGE && fabs(point_0_F-point_1_F) <=DOT_COH_AZI/180.0*PI )//
|
||||||
// && point_0_A >= point_1_A)//
|
&& point_0_A >= point_1_A)//
|
||||||
// {
|
{
|
||||||
// data_buffer[i].Use_Flag=1;
|
data_buffer[i].Use_Flag=1;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user