%-----------------------------------------------------------------------
% $Id: generateStandardHTML.m,v 1.1 2008/03/25 22:03:07 vnadkar Exp $
% Copyright Trimble 2008
%
% Provides the HTML output for posAnalyze. 
%-----------------------------------------------------------------------

function generateStandardHTML( parameters, statistics )

disp('Generating HTML file');

%% Generate the HTML output
fid = fopen('positionAnalysis.html','w+');

verticalView = 0; 
generateTitleHTML ( fid, parameters, statistics, verticalView );

%% Print the images. 
printImageLineHTML ( fid, {'Poserr.png', 'Velerr.png'} );
printImageLineHTML ( fid, {'AutoPoserr.png', 'AutoVelerr.png'} );
printImageLineHTML ( fid, {'Poshist.png', 'Velhist.png'} );
printImageLineHTML ( fid, {'AutoPoshist.png', 'AutoVelhist.png'} );
printImageLineHTML ( fid, {'Clkerr.png', 'Epocherr.png'} );

%% Create a Table of Statistics
includeFileHTML ( fid, 'statisticsSnippet.html');

%% Close the document
fprintf(fid,'</body>\n');
fprintf(fid,'</html>\n');
fclose(fid);

end