From 4775b261bb529aa3b7b001de8688a4daa7ce2846 Mon Sep 17 00:00:00 2001 From: kradchen Date: Mon, 29 May 2023 16:59:45 +0800 Subject: [PATCH] Fix detectTofAndAttMex bug. --- src/transmissionReconstruction/detection/detection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transmissionReconstruction/detection/detection.cpp b/src/transmissionReconstruction/detection/detection.cpp index 7e68e8f..8482d8d 100644 --- a/src/transmissionReconstruction/detection/detection.cpp +++ b/src/transmissionReconstruction/detection/detection.cpp @@ -292,7 +292,7 @@ namespace Recon { expectedSOSWater, offsetElectronicSamples, detectionWindowSOS, minSpeedOfSound, maxSpeedOfSound, gaussWindow); - diffStartSearch = timeResult1.startSearch - timeResult1.startSearch; + diffStartSearch = timeResult1.startSearch - timeResult2.startSearch; } auto _AscanBlock = timeResult1.AscanBlockProcessed; auto _AscanRefBlock = timeResult2.AscanBlockProcessed;