<?php require_once "atp.header.php" ?>

<section class="content-wrapper" data-heading="home" id="home">
	<!--Heading-->
	<div class="page-title">
		<h1>
			Home
			<div id="serial-number"><?php echo readDB("Settings", "SerialNumber");?></div>
		</h1>
		<div class="flex-row" id="version-row">
			<div class="flex-half">
				<h2>Version: &nbsp; &nbsp;</h2> 
				<?php echo str_replace("Version : ", "", readDB("Settings", "Version"));?>
			</div>
			<div class="flex-half">
				<h2>Updated: &nbsp; &nbsp;</h2> 
				<?php echo date("D, d M Y H:i:s", readDB("Settings", "UpdateTimeStamp"));?>
			</div>
		</div>
		<p>
			This webserver provides set-up, configuration and diagnostic information on all
			aspects of the A+T Processor (ATP) system. Functions are grouped as below:-
		</p>
	</div>
	
	<div class="top-wrapper box box-top">
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Speed/<wbr>Current</h2>
			</div>
			<div>
				<p>
					All aspects of boat speed and current calculations, including leeway.
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Position/<wbr>Attitude</h2>
			</div>
			<div>
				<p>
					Selection of position source(s) and calculation as well as heading, heel,
					trim and motion aspects.
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Depth</h2>
			</div>
			<div>
				<p>
					All sounder sources and calibrations.
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Wind</h2>
			</div>
			<div>
				<p>
					Wind measurements, calculations and corrections.
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Other Data</h2>
			</div>
			<div>
				<p>
					Configuration and calibration of analogue input channels including sea
					and air temperature.<br>
					Selection, configuration and calibration of NMEA0183/CANbus/serial data input.<br>
					Calibration of internal barometric pressure sensor.
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Display</h2>
			</div>
			<div>
				<p>
					Setting of damping times on output data. Filters for data output to the system.
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Settings</h2>
			</div>
			<div>
				<p>
					Select data output routes/rates.<br>
					Examine system configuration, IP addresses and software status.<br>
					Update systems and interface software.<br>
					Diagnostics pages.
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Man-<wbr>Overboard</h2>
			</div>
			<div>
				<p>
					Configuration of MOB activation and action. 
					<!--<a class="button button-gray button-medium" href="manOverboard.php">MOB Settings</a>-->
				</p>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-heading">
				<h2>Notes:-</h2>
			</div>
			<div>
				<p>
					Some pages have a Freeze/Release button. This allows the webserver page to be
					fixed for examination and has no effect on the working of the processor.<br>
					Help sections are provided on some pages as are tooltips with explanations.
				</p>
			</div>
		</div>
	</div>
	
	<div class="box box-bottom" id="hardware">
		<div class="flex-row">
			<div class="flex-half">
				<div class="flex-heading">
					<h2>Processor Temp</h2>
				</div>
				<div class="flex-field">
					<div class="field-container" id="procTemp" data-field=<?php echo fieldEnum::CPU_Temperature;?>
						data-sender="<?php echo PROCESSOR_ID;?>" 
						data-instance="<?php echo PROCESSOR_INSTANCE;?>">
						&nbsp;
					</div>
				</div>
			</div>
			<div class="flex-half">
				<div class="flex-heading">
					<h2>Supply Voltage</h2>
				</div>
				<div class="flex-field">
					<div class="field-container" id="supplyVolt" data-field=<?php echo fieldEnum::Calc_ATP_Voltage_Mon;?>
						data-sender="Damping" data-instance="<?php echo PROCESSOR_INSTANCE;?>">
						&nbsp;
					</div>
				</div>
			</div>
		</div>
		<div class="flex-row">
			<div class="flex-half">
				<div class="flex-heading">
					<h2>Enclosure Temp</h2>
				</div>
				<div class="flex-field">
					<div class="field-container" id="enclosureTemp" data-field=<?php echo fieldEnum::Interface_Temp;?>
						data-sender="Interface" data-instance="<?php echo PROCESSOR_INSTANCE;?>">
						&nbsp;
					</div>
				</div>
			</div>
			<div class="flex-half">
				<div class="flex-heading">
					<h2>Supply Current</h2>
				</div>
				<div class="flex-field">
					<div class="field-container" id="supplyCurrent" data-field=<?php echo fieldEnum::Calc_ATP_Current_Mon;?>
						data-sender="Interface" data-instance="<?php echo PROCESSOR_INSTANCE;?>">
						&nbsp;
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div class="top-wrapper box bottom-wrapper">
		<h1>Contact</h1>
		<div class="flex-row" id="contact-row">
			<div class="flex-half">
				<h2>Phone:&nbsp; &nbsp;</h2>
				<div>
					+44 1590 718182 <b>(24/7)</b> &nbsp; &nbsp;
				</div>
			</div>
			<div class="flex-half">
				<h2>Email:&nbsp; &nbsp;</h2>
				<div>
					<a href="mailto:support@AandTInstruments.com">support@AandTInstruments.com</a>
				</div>
			</div>
		</div>
	</div>
</section>

<script>
$(document).ready(function() {
	var model = new ObservableModel();
	var controller = new BasicController(model);
	var view = new BasicView(controller);
});
</script>

<?php require_once "footer.php" ?>
