回波文件中补充了0多普勒天线指向
parent
97dbe94757
commit
ae5473b380
|
|
@ -75,9 +75,9 @@
|
||||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<OpenMPSupport>true</OpenMPSupport>
|
<OpenMPSupport>true</OpenMPSupport>
|
||||||
<Optimization>MaxSpeed</Optimization>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
|
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
|
||||||
|
|
@ -125,8 +125,6 @@ ErrorCode RTPCProcessCls::Process(long num_thread)
|
||||||
|
|
||||||
stateCode = this->RTPCMainProcess(num_thread);
|
stateCode = this->RTPCMainProcess(num_thread);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (stateCode != ErrorCode::SUCCESS) {
|
if (stateCode != ErrorCode::SUCCESS) {
|
||||||
return stateCode;
|
return stateCode;
|
||||||
}else{}
|
}else{}
|
||||||
|
|
|
||||||
|
|
@ -128,28 +128,28 @@ ErrorCode TBPImageAlgCls::ProcessCPU(long num_thread)
|
||||||
double NormAnt = 0;
|
double NormAnt = 0;
|
||||||
|
|
||||||
for (long i = 0; i < rowCount; i++) {
|
for (long i = 0; i < rowCount; i++) {
|
||||||
time = antpos.get()[i * 16 + 0];
|
time = antpos.get()[i *19 + 0];
|
||||||
Px = antpos.get()[i * 16 + 1];
|
Px = antpos.get()[i *19 + 1];
|
||||||
Py = antpos.get()[i * 16 + 2];
|
Py = antpos.get()[i *19 + 2];
|
||||||
Pz = antpos.get()[i * 16 + 3];
|
Pz = antpos.get()[i *19 + 3];
|
||||||
Vx = antpos.get()[i * 16 + 4];
|
Vx = antpos.get()[i *19 + 4];
|
||||||
Vy = antpos.get()[i * 16 + 5];
|
Vy = antpos.get()[i *19 + 5];
|
||||||
Vz = antpos.get()[i * 16 + 6];
|
Vz = antpos.get()[i *19 + 6];
|
||||||
AntDirectX = antpos.get()[i * 16 + 7];
|
AntDirectX = antpos.get()[i *19 + 13]; // Zero doppler
|
||||||
AntDirectY = antpos.get()[i * 16 + 8];
|
AntDirectY = antpos.get()[i *19 + 14];
|
||||||
AntDirectZ = antpos.get()[i * 16 + 9];
|
AntDirectZ = antpos.get()[i *19 + 15];
|
||||||
AVx = antpos.get()[i * 16 + 10];
|
AVx = antpos.get()[i *19 + 10];
|
||||||
AVy = antpos.get()[i * 16 + 11];
|
AVy = antpos.get()[i *19 + 11];
|
||||||
AVz = antpos.get()[i * 16 + 12];
|
AVz = antpos.get()[i *19 + 12];
|
||||||
|
|
||||||
NormAnt = std::sqrt(AntDirectX * AntDirectX + AntDirectY * AntDirectY + AntDirectZ * AntDirectZ);
|
NormAnt = std::sqrt(AntDirectX * AntDirectX + AntDirectY * AntDirectY + AntDirectZ * AntDirectZ);
|
||||||
AntDirectX = AntDirectX / NormAnt;
|
AntDirectX = AntDirectX / NormAnt;
|
||||||
AntDirectY = AntDirectY / NormAnt;
|
AntDirectY = AntDirectY / NormAnt;
|
||||||
AntDirectZ = AntDirectZ / NormAnt;// ¹éÒ»»¯
|
AntDirectZ = AntDirectZ / NormAnt;// ¹éÒ»»¯
|
||||||
|
|
||||||
antpos.get()[i * 16 + 7] = AntDirectX;
|
antpos.get()[i *19 + 13] = AntDirectX;
|
||||||
antpos.get()[i * 16 + 8] = AntDirectY;
|
antpos.get()[i *19 + 14] = AntDirectY;
|
||||||
antpos.get()[i * 16 + 9] = AntDirectZ;
|
antpos.get()[i *19 + 15] = AntDirectZ;
|
||||||
Pxs(i, 0) = Px;
|
Pxs(i, 0) = Px;
|
||||||
Pys(i, 0) = Py;
|
Pys(i, 0) = Py;
|
||||||
Pzs(i, 0) = Pz;
|
Pzs(i, 0) = Pz;
|
||||||
|
|
@ -286,28 +286,28 @@ ErrorCode TBPImageAlgCls::ProcessGPU()
|
||||||
double NormAnt = 0;
|
double NormAnt = 0;
|
||||||
|
|
||||||
for (long i = 0; i < rowCount; i++) {
|
for (long i = 0; i < rowCount; i++) {
|
||||||
time = antpos.get()[i * 16 + 0];
|
time = antpos.get()[i *19 + 0];
|
||||||
Px = antpos.get()[i * 16 + 1];
|
Px = antpos.get()[i *19 + 1];
|
||||||
Py = antpos.get()[i * 16 + 2];
|
Py = antpos.get()[i *19 + 2];
|
||||||
Pz = antpos.get()[i * 16 + 3];
|
Pz = antpos.get()[i *19 + 3];
|
||||||
Vx = antpos.get()[i * 16 + 4];
|
Vx = antpos.get()[i *19 + 4];
|
||||||
Vy = antpos.get()[i * 16 + 5];
|
Vy = antpos.get()[i *19 + 5];
|
||||||
Vz = antpos.get()[i * 16 + 6];
|
Vz = antpos.get()[i *19 + 6];
|
||||||
AntDirectX = antpos.get()[i * 16 + 7];
|
AntDirectX = antpos.get()[i *19 + 13];// zero doppler
|
||||||
AntDirectY = antpos.get()[i * 16 + 8];
|
AntDirectY = antpos.get()[i *19 + 14];
|
||||||
AntDirectZ = antpos.get()[i * 16 + 9];
|
AntDirectZ = antpos.get()[i *19 + 15];
|
||||||
AVx = antpos.get()[i * 16 + 10];
|
AVx = antpos.get()[i *19 + 10];
|
||||||
AVy = antpos.get()[i * 16 + 11];
|
AVy = antpos.get()[i *19 + 11];
|
||||||
AVz = antpos.get()[i * 16 + 12];
|
AVz = antpos.get()[i *19 + 12];
|
||||||
|
|
||||||
NormAnt = std::sqrt(AntDirectX * AntDirectX + AntDirectY * AntDirectY + AntDirectZ * AntDirectZ);
|
NormAnt = std::sqrt(AntDirectX * AntDirectX + AntDirectY * AntDirectY + AntDirectZ * AntDirectZ);
|
||||||
AntDirectX = AntDirectX / NormAnt;
|
AntDirectX = AntDirectX / NormAnt;
|
||||||
AntDirectY = AntDirectY / NormAnt;
|
AntDirectY = AntDirectY / NormAnt;
|
||||||
AntDirectZ = AntDirectZ / NormAnt;// ¹éÒ»»¯
|
AntDirectZ = AntDirectZ / NormAnt;// ¹éÒ»»¯
|
||||||
|
|
||||||
antpos.get()[i * 16 + 7] = AntDirectX;
|
antpos.get()[i *19 + 13] = AntDirectX;
|
||||||
antpos.get()[i * 16 + 8] = AntDirectY;
|
antpos.get()[i *19 + 14] = AntDirectY;
|
||||||
antpos.get()[i * 16 + 9] = AntDirectZ;
|
antpos.get()[i *19 + 15] = AntDirectZ;
|
||||||
|
|
||||||
|
|
||||||
for (long j = 0; j < colCount; j++) {
|
for (long j = 0; j < colCount; j++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue