Skip to content
Snippets Groups Projects
Commit 52694643 authored by leprob001's avatar leprob001
Browse files

The clock error now has always size of X by 3.

parent a3ff58d5
No related branches found
No related tags found
No related merge requests found
......@@ -134,13 +134,13 @@ switch trackingMethod
if strcmp(pTrackingMethod, 'exclusive least square') ...
&& (sum(~isnan(distanceToSoundsources{oDates})) ~= length(soundsourcePositions))
segmentPositions = [segmentPositions; [NaN, NaN]];
segmentClockError = [segmentClockError; NaN(1, length(soundsourceNames))];
segmentClockError = [segmentClockError; NaN(1, 3)];
continue;
end
segmentPositions = [segmentPositions; ...
rad2deg(artoa.vendor.ls_converge(segmentPositions(end, :), length(soundsourceNames), soundsourcePositions, distanceToSoundsources{oDates}, pSoundVelocity(1)/1000)) ...
];
segmentClockError = [segmentClockError; NaN(1, length(soundsourceNames))];
segmentClockError = [segmentClockError; NaN(1, 3)];
end
case 'circular'
for oDates = 1:length(intersectedToaDates)
......@@ -148,14 +148,14 @@ switch trackingMethod
segmentPositions = [segmentPositions; ...
rad2deg(artoa.vendor.xnavai(deg2rad(soundsourcePositions), distances, deg2rad(referencePosition), 2)) ...
];
segmentClockError = [segmentClockError; NaN(1, length(soundsourceNames))];
segmentClockError = [segmentClockError; NaN(1, 3)];
end
case 'hyperbolic'
for oDates = 1:length(intersectedToaDates)
distances = distanceToSoundsources{oDates};
if any(isnan(distances))
segmentPositions = [segmentPositions; [NaN NaN]];
segmentClockError = [segmentClockError; NaN(1, length(soundsourceNames))];
segmentClockError = [segmentClockError; NaN(1, 3)];
continue;
end
segmentPositions = [segmentPositions; ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment