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

Added launch position as reference point on initialization.

parent af16f2fe
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,11 @@ if ~isfield(artoaWorkspace, 'trackParameter') ...@@ -49,6 +49,11 @@ if ~isfield(artoaWorkspace, 'trackParameter')
artoa.controller.track.parameter.getDefaultCombinationCell() ... artoa.controller.track.parameter.getDefaultCombinationCell() ...
); );
artoaGui.trackParameter.tableSoundSourceCombinations.Data = artoa.controller.track.parameter.getDefaultCombinationCell(); artoaGui.trackParameter.tableSoundSourceCombinations.Data = artoa.controller.track.parameter.getDefaultCombinationCell();
artoaGui.trackParameter.tableSoundSourceCombinations.Data{1, 4} = [ ...
num2str(artoaWorkspace.float.launchpos(1)) ...
' ' ...
num2str(artoaWorkspace.float.launchpos(2)) ...
];
%% Update offsets table in workspace %% Update offsets table in workspace
artoa.controller.track.parameter.updateWorkspaceOffsetsTable(); artoa.controller.track.parameter.updateWorkspaceOffsetsTable();
......
...@@ -11,7 +11,6 @@ end ...@@ -11,7 +11,6 @@ end
%% Prepare required variables %% Prepare required variables
soundsources = artoa.controller.getSoundsourcesWithAppliedToa(); soundsources = artoa.controller.getSoundsourcesWithAppliedToa();
workspaceOffsets = artoaWorkspace.trackParameter.soundsourceOffsets;
%% Initialize if not available %% Initialize if not available
if ~artoa.data.hasMember(artoaWorkspace, {'trackParameter', 'soundsourceOffsets'}) if ~artoa.data.hasMember(artoaWorkspace, {'trackParameter', 'soundsourceOffsets'})
...@@ -20,6 +19,8 @@ if ~artoa.data.hasMember(artoaWorkspace, {'trackParameter', 'soundsourceOffsets' ...@@ -20,6 +19,8 @@ if ~artoa.data.hasMember(artoaWorkspace, {'trackParameter', 'soundsourceOffsets'
artoa.offsets.generateOffsetTable(soundsources); artoa.offsets.generateOffsetTable(soundsources);
end end
workspaceOffsets = artoaWorkspace.trackParameter.soundsourceOffsets;
%% Add every soundsource %% Add every soundsource
fnames = fieldnames(soundsources); fnames = fieldnames(soundsources);
for i = 1:length(fnames) for i = 1:length(fnames)
......
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