From a34691165de6c87042e015547795832e97eaec09 Mon Sep 17 00:00:00 2001
From: Alexis Bory <alexis.bory@gmail.com>
Date: Sun, 6 Mar 2011 19:52:35 +0100
Subject: [PATCH] Generic US mil drum altimeter: added negativ values flag,
 below 1000 and 10000 ft flags.

---
 .../Instruments-3d/altimeter/altimeter.xml    | 33 ++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/Aircraft/Instruments-3d/altimeter/altimeter.xml b/Aircraft/Instruments-3d/altimeter/altimeter.xml
index bb211e5df..4bf1b0412 100644
--- a/Aircraft/Instruments-3d/altimeter/altimeter.xml
+++ b/Aircraft/Instruments-3d/altimeter/altimeter.xml
@@ -20,7 +20,7 @@
 		<type>rotate</type>
 		<object-name>needle</object-name>
 		<property>instrumentation/altimeter/indicated-altitude-ft</property>
-		<factor>3.6</factor>  
+		<factor>0.36</factor>  
 		<axis>
 			<x>-1</x>
 			<y>0</y>
@@ -76,6 +76,37 @@
 		</axis>
 	</animation>
 
+	<animation>
+		<type>select</type>
+		<object-name>negativ-flag</object-name>
+		<condition>
+			<less-than>
+				<property>instrumentation/altimeter/indicated-altitude-ft</property>
+				<value>0</value>
+			</less-than>
+		</condition>
+	</animation>
+	<animation>
+		<type>select</type>
+		<object-name>below-1000-flag</object-name>
+		<condition>
+			<less-than>
+				<property>instrumentation/altimeter/indicated-altitude-ft</property>
+				<value>1000</value>
+			</less-than>
+		</condition>
+	</animation>
+	<animation>
+		<type>select</type>
+		<object-name>below-10000-flag</object-name>
+		<condition>
+			<less-than>
+				<property>instrumentation/altimeter/indicated-altitude-ft</property>
+				<value>10000</value>
+			</less-than>
+		</condition>
+	</animation>
+
 	<!-- barometer drum counter -->
 	<animation>
 		<type>textranslate</type>