回波文件中补充了0多普勒天线指向

Release
陈增辉 2024-11-26 02:24:41 +08:00
parent 97dbe94757
commit ae5473b380
3 changed files with 34 additions and 36 deletions

View File

@ -75,9 +75,9 @@
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<OpenMPSupport>true</OpenMPSupport>
<Optimization>MaxSpeed</Optimization>
<WholeProgramOptimization>false</WholeProgramOptimization>
<WholeProgramOptimization>true</WholeProgramOptimization>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DebugInformationFormat>None</DebugInformationFormat>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
</ClCompile>
</ItemDefinitionGroup>

View File

@ -125,8 +125,6 @@ ErrorCode RTPCProcessCls::Process(long num_thread)
stateCode = this->RTPCMainProcess(num_thread);
if (stateCode != ErrorCode::SUCCESS) {
return stateCode;
}else{}

View File

@ -128,28 +128,28 @@ ErrorCode TBPImageAlgCls::ProcessCPU(long num_thread)
double NormAnt = 0;
for (long i = 0; i < rowCount; i++) {
time = antpos.get()[i * 16 + 0];
Px = antpos.get()[i * 16 + 1];
Py = antpos.get()[i * 16 + 2];
Pz = antpos.get()[i * 16 + 3];
Vx = antpos.get()[i * 16 + 4];
Vy = antpos.get()[i * 16 + 5];
Vz = antpos.get()[i * 16 + 6];
AntDirectX = antpos.get()[i * 16 + 7];
AntDirectY = antpos.get()[i * 16 + 8];
AntDirectZ = antpos.get()[i * 16 + 9];
AVx = antpos.get()[i * 16 + 10];
AVy = antpos.get()[i * 16 + 11];
AVz = antpos.get()[i * 16 + 12];
time = antpos.get()[i *19 + 0];
Px = antpos.get()[i *19 + 1];
Py = antpos.get()[i *19 + 2];
Pz = antpos.get()[i *19 + 3];
Vx = antpos.get()[i *19 + 4];
Vy = antpos.get()[i *19 + 5];
Vz = antpos.get()[i *19 + 6];
AntDirectX = antpos.get()[i *19 + 13]; // Zero doppler
AntDirectY = antpos.get()[i *19 + 14];
AntDirectZ = antpos.get()[i *19 + 15];
AVx = antpos.get()[i *19 + 10];
AVy = antpos.get()[i *19 + 11];
AVz = antpos.get()[i *19 + 12];
NormAnt = std::sqrt(AntDirectX * AntDirectX + AntDirectY * AntDirectY + AntDirectZ * AntDirectZ);
AntDirectX = AntDirectX / NormAnt;
AntDirectY = AntDirectY / NormAnt;
AntDirectZ = AntDirectZ / NormAnt;// ¹éÒ»»¯
antpos.get()[i * 16 + 7] = AntDirectX;
antpos.get()[i * 16 + 8] = AntDirectY;
antpos.get()[i * 16 + 9] = AntDirectZ;
antpos.get()[i *19 + 13] = AntDirectX;
antpos.get()[i *19 + 14] = AntDirectY;
antpos.get()[i *19 + 15] = AntDirectZ;
Pxs(i, 0) = Px;
Pys(i, 0) = Py;
Pzs(i, 0) = Pz;
@ -286,28 +286,28 @@ ErrorCode TBPImageAlgCls::ProcessGPU()
double NormAnt = 0;
for (long i = 0; i < rowCount; i++) {
time = antpos.get()[i * 16 + 0];
Px = antpos.get()[i * 16 + 1];
Py = antpos.get()[i * 16 + 2];
Pz = antpos.get()[i * 16 + 3];
Vx = antpos.get()[i * 16 + 4];
Vy = antpos.get()[i * 16 + 5];
Vz = antpos.get()[i * 16 + 6];
AntDirectX = antpos.get()[i * 16 + 7];
AntDirectY = antpos.get()[i * 16 + 8];
AntDirectZ = antpos.get()[i * 16 + 9];
AVx = antpos.get()[i * 16 + 10];
AVy = antpos.get()[i * 16 + 11];
AVz = antpos.get()[i * 16 + 12];
time = antpos.get()[i *19 + 0];
Px = antpos.get()[i *19 + 1];
Py = antpos.get()[i *19 + 2];
Pz = antpos.get()[i *19 + 3];
Vx = antpos.get()[i *19 + 4];
Vy = antpos.get()[i *19 + 5];
Vz = antpos.get()[i *19 + 6];
AntDirectX = antpos.get()[i *19 + 13];// zero doppler
AntDirectY = antpos.get()[i *19 + 14];
AntDirectZ = antpos.get()[i *19 + 15];
AVx = antpos.get()[i *19 + 10];
AVy = antpos.get()[i *19 + 11];
AVz = antpos.get()[i *19 + 12];
NormAnt = std::sqrt(AntDirectX * AntDirectX + AntDirectY * AntDirectY + AntDirectZ * AntDirectZ);
AntDirectX = AntDirectX / NormAnt;
AntDirectY = AntDirectY / NormAnt;
AntDirectZ = AntDirectZ / NormAnt;// ¹éÒ»»¯
antpos.get()[i * 16 + 7] = AntDirectX;
antpos.get()[i * 16 + 8] = AntDirectY;
antpos.get()[i * 16 + 9] = AntDirectZ;
antpos.get()[i *19 + 13] = AntDirectX;
antpos.get()[i *19 + 14] = AntDirectY;
antpos.get()[i *19 + 15] = AntDirectZ;
for (long j = 0; j < colCount; j++) {