<?xml version="1.0"?>

<!--
	Vertical speed speedometer. For the MiG-15bis, but can be used in every JSB craft.
	Author: Slavutinsky Victor
-->

<system>

	<fileheader>
		<author> Slavutinsky Victor </author>
		<filecreationdate> 2010-10-03 </filecreationdate>
		<version>$Revision: 1.00 $</version>
		<description> Vertical speed speedometer </description>
	</fileheader>

<!--	That must be aded to set file

				<vertspeedometer>
					<serviceable type="bool">1</serviceable>
					<on type="bool">0</on>
				</vertspeedometer>

-->

	<channel name="Vertspeedometer">

		<switch name="calculations/vertspeedometer/stored-speed-fps">
			<default value="0"/>
			<test logic="OR" value="systems/vertspeedometer/stored-speed-fps">
				systems/vertspeedometer/on == 0
				systems/vertspeedometer/serviceable == 0
			</test>
			<test logic="AND" value="velocities/v-down-fps">
				systems/vertspeedometer/on == 1
				systems/vertspeedometer/serviceable == 1
			</test>
			<output>systems/vertspeedometer/stored-speed-fps</output>
		</switch>

		<switch name="calculations/vertspeedometer/indicated-speed-fps">
			<default value="0"/>
			<test logic="OR" value="systems/vertspeedometer/stored-speed-fps">
				systems/vertspeedometer/on == 0
				systems/vertspeedometer/serviceable == 0
			</test>
			<test logic="AND" value="velocities/v-down-fps">
				systems/vertspeedometer/on == 1
				systems/vertspeedometer/serviceable == 1
			</test>
			<output>systems/vertspeedometer/indicated-speed-fps</output>
		</switch>

	</channel>

</system>
