function [] = recalculateToaGpsAndPlot() %RECALCULATETOAGPSANDPLOT Summary of this function goes here % Detailed explanation goes here global artoaWorkspace artoaDataInput; %% Recalculate TOAs % combine initial toa and current applied soundsources toaData = artoaWorkspace.toaData; toaData.toa = artoaDataInput.toaData.toa; if artoaWorkspace.editOffsets.useOffsets artoaWorkspace.toaData = artoa.toa.recalculate( ... artoaWorkspace.float, ... toaData, ... artoaWorkspace.editOffsets.offsets ... ); else artoaWorkspace.toaData = toaData; end %% Calculate GPS TOAs artoa.controller.edit.timeOfArrival.calculateGpsToas(); %% Update Offsets GUI artoa.controller.edit.offsets.updateGui(); %% Replot all windows artoa.controller.edit.updateAvailablePlots(); end