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

function generateVerticalHTML( parameters, statistics )

disp('Generating Vertical HTML file');

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

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

%% Print the images. 
printImageLineHTML ( fid, {'Vert1DPoserr.png'} );
printImageLineHTML ( fid, {'Vert1DAutoPoserr.png'} );
printImageLineHTML ( fid, {'Vert1DVelerr.png'} );
printImageLineHTML ( fid, {'Vert1DAutoVelerr.png'} );
printImageLineHTML ( fid, {'VertClkerr.png'} );
printImageLineHTML ( fid, {'VertEpocherr.png'} );

printImageLineHTML ( fid, {'Poshist.png', 'Velhist.png'} );
printImageLineHTML ( fid, {'AutoPoshist.png', 'AutoVelhist.png'} );

printImageLineHTML ( fid, {'Vert2DPoserr.png', 'Vert2DVelerr.png'} );
printImageLineHTML ( fid, {'Vert2DAutoPoserr.png', 'Vert2DAutoVelerr.png'} );


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

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

end


