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

Added drift and offsets from soundsource file to the offsets table.

parent 80b7434a
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,11 @@ if iscell(pSoundsources) ...@@ -19,6 +19,11 @@ if iscell(pSoundsources)
for i = 1:length(pSoundsources) for i = 1:length(pSoundsources)
offsetTable(i + 1, :) = artoa.offsets.getDefaultRowValues(); offsetTable(i + 1, :) = artoa.offsets.getDefaultRowValues();
offsetTable.Properties.RowNames(i + 1) = {pSoundsources{i}.sourcename}; offsetTable.Properties.RowNames(i + 1) = {pSoundsources{i}.sourcename};
offsetTable{i + 1, 'Drift'} = pSoundsources{i}.drift;
offsetTable{i + 1, 'Offset'} = pSoundsources{i}.offset(4);
offsetTable{i + 1, 'EmpiricalDrift'} = pSoundsources{i}.empiric_drift;
offsetTable{i + 1, 'EmpiricalOffset'} = pSoundsources{i}.empiric_offset(4);
offsetTable{i + 1, 'ReceiveOffset'} = pSoundsources{i}.rcv_offset(4);
end end
end end
...@@ -27,6 +32,11 @@ if isstruct(pSoundsources) ...@@ -27,6 +32,11 @@ if isstruct(pSoundsources)
for i = 1:length(fnames) for i = 1:length(fnames)
offsetTable(i + 1, :) = artoa.offsets.getDefaultRowValues(); offsetTable(i + 1, :) = artoa.offsets.getDefaultRowValues();
offsetTable.Properties.RowNames(i + 1) = {pSoundsources.(fnames{i}).sourcename}; offsetTable.Properties.RowNames(i + 1) = {pSoundsources.(fnames{i}).sourcename};
offsetTable{i + 1, 'Drift'} = pSoundsources.(fnames{i}).drift;
offsetTable{i + 1, 'Offset'} = pSoundsources.(fnames{i}).offset(4);
offsetTable{i + 1, 'EmpiricalDrift'} = pSoundsources.(fnames{i}).empiric_drift;
offsetTable{i + 1, 'EmpiricalOffset'} = pSoundsources.(fnames{i}).empiric_offset(4);
offsetTable{i + 1, 'ReceiveOffset'} = pSoundsources.(fnames{i}).rcv_offset(4);
end end
end end
......
...@@ -3,8 +3,7 @@ function [defaultRow] = getDefaultRowValues() ...@@ -3,8 +3,7 @@ function [defaultRow] = getDefaultRowValues()
% Detailed explanation goes here % Detailed explanation goes here
defaultOffset = 0; defaultOffset = 0;
defaultUseOffset = false; defaultRow = {defaultOffset, defaultOffset, NaN, NaN, NaN, NaN, NaN};
defaultRow = {defaultOffset, defaultUseOffset, defaultOffset, defaultUseOffset};
end end
...@@ -4,9 +4,12 @@ function [defaultVariableNames] = getDefaultVariableNames() ...@@ -4,9 +4,12 @@ function [defaultVariableNames] = getDefaultVariableNames()
defaultVariableNames = { ... defaultVariableNames = { ...
'Begin', ... 'Begin', ...
'UseBegin', ...
'End', ... 'End', ...
'UseEnd' ... 'Drift', ...
'Offset', ...
'EmpiricalDrift', ...
'EmpiricalOffset', ...
'ReceiveOffset' ...
}; };
......
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