Skip to content

Commit

Permalink
Fixed the ReconstructLri code: a temporary variable was not zeroed f…
Browse files Browse the repository at this point in the history
…or each subsequent TX.
  • Loading branch information
pjarosik authored Nov 3, 2021
1 parent 203d485 commit 3158570
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/python/arrus/utils/iq_raw_2_lri.cu
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ iqRaw2Lri(complex<float> *iqLri, const complex<float> *iqRaw,
(xPix[x] - xElem[txApLstElem[iTx]])*cosf(txAngZX[iTx])) >= 0.f)) ? 1.f : 0.f;
}
pixWgh = 0.0f;

pix.real(0);
pix.imag(0);
if (txApod != 0.0f) {
pix.real(0);
pix.imag(0);

for (int iRx = 0; iRx < nRx; iRx++) {
iElem = iRx + rxApOrigElem[iTx];
if (iElem < 0 || iElem >= nElem) continue;
Expand Down Expand Up @@ -124,4 +124,4 @@ iqRaw2Lri(complex<float> *iqLri, const complex<float> *iqRaw,
}
}

}
}

0 comments on commit 3158570

Please sign in to comment.