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

<section class="content-wrapper" data-heading="other-data" id="NMEA">
	<!-- Heading -->
	<div class="page-title">
		<h1>
			NMEA0183 Tx & Rx Filter
		</h1>
		<p>
			Manage which sentences to transmit (Tx) and receive (Rx) on each NMEA0183 channel.<br>
			Heading output at 20Hz (for certain pilots/radars) can be enabled by checking HDT, HDM or HDG on the desired port
			(note: these must be the only sentences enabled). At 4800 baud only one sentence can be sent at 20Hz.
			To send multiple sentences at 20Hz, a baud rate of 38400 or higher is required.<br>
			NMEA input ports can be <a href="nmeaType.php">configured</a> to accept serial or MIP data.
		</p>
	</div>
	
	<!-- NMEA Filters -->
	<div class="box top-wrapper" id="filter-container">
		<div class="nmea-filter"></div>
	</div>

	<!-- Proprietary Filters -->
	<div class="box top-wrapper" id="proprietary-container">
		<div class="nmea-proprietary-filter"></div>
	</div>
	
	<!--Buttons-->
	<div class="button-box" id="button-container">
		<div class="box">
			<a id="ok-button" class="button button-gray button-medium">OK</a>
			<a id="cancel-button" class="button button-gray button-medium">Cancel</a>
			<a id="apply-button" class="button button-gray button-medium">Apply</a>
		</div>
	</div>

</section>

<script type="text/javascript" src="js/atp.nmea-filter-model.js" defer></script>
<script type="text/javascript" src="js/atp.nmea-filter-view.js" defer></script>
<script type="text/javascript" src="js/atp.nmea-filter-controller.js" defer></script>
<script>
$(document).ready(function() {
	let model = new NmeaFilterModel();
	let controller = new NmeaFilterController(model);
	let view = new NmeaFilterView(controller);
});
</script>

<?php require_once "footer.php"?>
