<?xml version="1.0" encoding="UTF-8" ?>

<!-- Copyright (c) 2020 Josh Davidson (Octal450) -->

<!-- Brakes Pressure Indicator -->

<PropertyList>

	<path>res/Brakes.ac</path>
    
    <!-- Left Brake Pressure Indicator -->
    
    <animation>
    	<type>rotate</type>
    	<object-name>brakes_lb_psi</object-name>
    	<property>systems/hydraulic/brakes/pressure-left-psi</property>
    	<factor>0.03</factor>
		<condition>
			<equals>
				<property>systems/hydraulic/brakes/mode</property>
				<value>2</value>
			</equals>
		</condition>
    	<axis>
			<object-name>brakes_lb_psi.axis</object-name>
    	</axis>
    </animation>
    
    <animation>
    	<type>rotate</type>
    	<object-name>brakes_rb_psi</object-name>
    	<property>systems/hydraulic/brakes/pressure-right-psi</property>
    	<factor>-0.03</factor>
		<condition>
			<equals>
				<property>systems/hydraulic/brakes/mode</property>
				<value>2</value>
			</equals>
		</condition>
    	<axis>
			<object-name>brakes_rb_psi.axis</object-name>
    	</axis>
    </animation>
    
    <animation>
    	<type>rotate</type>
    	<object-name>brakes_accum_psi</object-name>
    	<property>systems/hydraulic/brakes/accumulator-pressure-psi</property>
    	<interpolation>
			<entry><ind>0</ind><dep>0</dep></entry>
			<entry><ind>700</ind><dep>66</dep></entry>
			<entry><ind>2000</ind><dep>78</dep></entry>
			<entry><ind>3000</ind><dep>90</dep></entry>
		</interpolation>
    	<axis>
			<object-name>brakes_accum_psi.axis</object-name>
    	</axis>
    </animation>
	
	<animation>
		<name>Panel lighting</name>
		<type>material</type>
		<object-name>brakes_body</object-name>
		<emission>
			<red>0.3</red>
			<green>0.3</green>
			<blue>0.3</blue>
			<factor-prop>sim/model/lights/dome-light</factor-prop>
		</emission>
	</animation>
	
	<effect>
		<inherits-from>Aircraft/A320-family/Models/Effects/brake</inherits-from>
		<object-name>brakes_body</object-name>
	</effect>

</PropertyList>