function updateData(num)
%   Function: updateData
%   Author: Daniel O'Hara
%   Date: 12/6/2015
%   Description: Function used in parallel for loop collect raw magnetic
%   and navigation data.

if num == 1
    getMagData2 % Collect new raw magnetic data.
    combineMag  % Combine all raw magnetic data.
elseif num == 2
    getNavData % Collect new raw navigation data.
    combineNav % Combine all raw navigation data.
end

end

