1
0
Fork 0

c172p for 2020.1

From the c172p-team

https://github.com/c172p-team/c172p/releases/tag/version%2F2020.1

Commit 5c870e4559434393c6985ae8ae4c11132a3d2030
This commit is contained in:
Stuart Buchanan 2020-04-01 18:43:35 +01:00
parent f3222c73d9
commit 67b8af5ea2
36 changed files with 25872 additions and 22499 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>lm-gear</name>
<inherits-from>Aircraft/c172p/Models/Effects/interior/c172p-interior</inherits-from>
<parameters>
<texture n="3">
<image>Aircraft/c172p/Models/Effects/interior/lm_gear-breakers.png</image>
<type>2d</type>
<filter>linear-mipmap-linear</filter>
<wrap-s>clamp</wrap-s>
<wrap-t>clamp</wrap-t>
<internal-format>normalized</internal-format>
</texture>
<lightmap-enabled type="int">1</lightmap-enabled>
<lightmap-multi type="int">1</lightmap-multi>
<lightmap-factor type="float" n="0"><use>/sim/model/lightmap/instruments/factor</use></lightmap-factor>
<lightmap-color type="vec3d" n="0"> 1 .95 0.85 </lightmap-color>
<lightmap-factor type="float" n="1"><use>/sim/model/lightmap/flood/factor</use></lightmap-factor>
<lightmap-color type="vec3d" n="1"> 0.9 0.5 0.5 </lightmap-color>
<lightmap-factor type="float" n="2"><use>/sim/model/lightmap/dome/factor</use></lightmap-factor>
<lightmap-color type="vec3d" n="2"> 1.0 0.8 0.5 </lightmap-color>
<lightmap-factor type="float" n="3">0</lightmap-factor>
<lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color>
</parameters>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View file

@ -2,6 +2,22 @@
<PropertyList>
<params>
<bushkit>sim/model/variant</bushkit>
<cockpit>
<electrical>
<gear-amphibious>sim/model/c172p/lighting/gear-select</gear-amphibious>
<gear-advisory>sim/model/c172p/lighting/gear-advisory</gear-advisory>
</electrical>
</cockpit>
<gear-amphibious>
<front-left-position-norm>engines/engine[3]/n2</front-left-position-norm>
<front-right-position-norm>engines/engine[4]/n2</front-right-position-norm>
<rear-left-position-norm>engines/engine[5]/n2</rear-left-position-norm>
<rear-right-position-norm>engines/engine[6]/n2</rear-right-position-norm>
</gear-amphibious>
</params>
<!-- original work from dhc6 -->
<path>gear-ctl.ac</path>
@ -28,6 +44,14 @@
<object-name>GearScrews</object-name>
</effect>
<effect>
<inherits-from>../../../../Effects/interior/lm-gear-breakers</inherits-from>
<object-name>hydr_pump_breaker</object-name>
<object-name>gear_advise_breaker</object-name>
<object-name>gear_select_breaker</object-name>
<object-name>breakers-base-hydr</object-name>
</effect>
<animation>
<type>material</type>
<object-name>nosedn1</object-name>
@ -57,4 +81,698 @@
</emission>
</animation>
<animation>
<type>select</type>
<object-name>Switch.nut</object-name>
<object-name>Dim.bezel</object-name>
<object-name>Dim.toggle</object-name>
<object-name>GearAdvisory</object-name>
<object-name>GearFace</object-name>
<object-name>Gearswitch</object-name>
<object-name>GearScrews</object-name>
<object-name>hydr_pump_breaker</object-name>
<object-name>gear_advise_breaker</object-name>
<object-name>gear_select_breaker</object-name>
<object-name>breakers-base-hydr</object-name>
<condition>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
</condition>
</animation>
<!-- Dim Toggle Switch -->
<animation>
<type>pick</type>
<object-name>Dim.toggle</object-name>
<visible>true</visible>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>/controls/lighting/gearled</property>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("avionics")</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>led-dim-switch</tooltip-id>
<label>Dim Gear Panel LED's</label>
</binding>
</hovered>
</animation>
<animation>
<type>rotate</type>
<object-name>Dim.toggle</object-name>
<property>/controls/lighting/gearled</property>
<factor>30</factor>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>-0.35939</x-m>
<y-m> 0.22687</y-m>
<z-m> 0.09171</z-m>
</center>
</animation>
<animation>
<type>material</type>
<object-name>GearAdvisory</object-name>
<condition>
<and>
<greater-than>
<property>/velocities/groundspeed-kt</property>
<value>10</value>
</greater-than>
<less-than>
<property>/velocities/groundspeed-kt</property>
<value>70</value>
</less-than>
<property alias="/params/cockpit/electrical/gear-advisory"/>
</and>
</condition>
<emission>
<red>1</red>
<green>0.26</green>
<blue>0.05</blue>
<factor-prop>/controls/lighting/factor-led</factor-prop>
</emission>
</animation>
<model>
<name>GearAdvisoryled</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_orange_large.xml</path>
<offsets>
<x-m>-0.354 </x-m>
<y-m> 0.28093</y-m>
<z-m> 0.11269</z-m>
</offsets>
<condition>
<and>
<greater-than>
<property>/velocities/groundspeed-kt</property>
<value>10</value>
</greater-than>
<less-than>
<property>/velocities/groundspeed-kt</property>
<value>70</value>
</less-than>
<property alias="/params/cockpit/electrical/gear-advisory"/>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<!-- Gear Down - land -->
<animation>
<type>select</type>
<object-name>nosedn1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>nosedn1led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241 </y-m>
<z-m> 0.08082</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>nosedn2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>nosedn2led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254</y-m>
<z-m> 0.08083</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>maindn1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>maindn1led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241</y-m>
<z-m> 0.06783</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>maindn2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>maindn2led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254</y-m>
<z-m> 0.06784</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<!-- Gear Up - water -->
<animation>
<type>select</type>
<object-name>noseup1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>noseup1led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241 </y-m>
<z-m> 0.11959</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>noseup2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>noseup2led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254 </y-m>
<z-m> 0.11959</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>mainup1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>mainup1led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241 </y-m>
<z-m> 0.10677</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>mainup2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>mainup2led</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254 </y-m>
<z-m> 0.10678</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<!-- in transit -->
<animation>
<type>select</type>
<object-name>pump</object-name>
<condition>
<and>
<greater-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</greater-than>
<less-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</less-than>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>pumpled</name>
<path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_red.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.247 </y-m>
<z-m> 0.09396</z-m>
</offsets>
<condition>
<and>
<greater-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</greater-than>
<less-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</less-than>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>material</type>
<object-name>noseup1</object-name>
<object-name>noseup2</object-name>
<object-name>mainup1</object-name>
<object-name>mainup2</object-name>
<object-name>nosedn1</object-name>
<object-name>nosedn2</object-name>
<object-name>maindn1</object-name>
<object-name>maindn2</object-name>
<object-name>pump</object-name>
<emission>
<red> .3</red>
<green>.3</green>
<blue> .3</blue>
<factor-prop>/controls/lighting/factor-led</factor-prop>
</emission>
</animation>
<animation>
<type>rotate</type>
<object-name>Gearswitch</object-name>
<property>controls/gear/gear-down-command</property>
<factor>45</factor>
<axis>
<x> 0</x>
<y> 1</y>
<z> 0</z>
</axis>
<center>
<x-m>-0.35905</x-m>
<y-m> 0.27999</y-m>
<z-m> 0.0751</z-m>
</center>
</animation>
<animation>
<type>pick</type>
<object-name>Gearswitch</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>controls/gear/gear-down-command</property>
</binding>
</action>
</animation>
<!-- amphibious landing gear -->
<animation>
<type>translate</type>
<object-name>gear_select_breaker</object-name>
<property>controls/circuit-breakers/gear-select</property>
<factor>-0.008</factor>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>gear_select_breaker</object-name>
<visible>true</visible>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>controls/circuit-breakers/gear-select</property>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("cb")</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>gear_select_breaker</tooltip-id>
<label>Gear select breaker: %s</label>
<mapping>on-off</mapping>
<property>controls/circuit-breakers/gear-select</property>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>gear_advise_breaker</object-name>
<property>controls/circuit-breakers/gear-advisory</property>
<factor>-0.008</factor>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>gear_advise_breaker</object-name>
<visible>true</visible>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>controls/circuit-breakers/gear-advisory</property>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("cb")</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>gear_advise_breaker</tooltip-id>
<label>Gear advisory breaker: %s</label>
<mapping>on-off</mapping>
<property>controls/circuit-breakers/gear-advisory</property>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>hydr_pump_breaker</object-name>
<property>controls/circuit-breakers/hydraulic-pump</property>
<factor>-0.008</factor>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>hydr_pump_breaker</object-name>
<visible>true</visible>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>controls/circuit-breakers/hydraulic-pump</property>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("cb")</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>hydr_pump_breaker</tooltip-id>
<label>Hydraulic pump breaker: %s</label>
<mapping>on-off</mapping>
<property>controls/circuit-breakers/hydraulic-pump</property>
</binding>
</hovered>
</animation>
</PropertyList>

View file

@ -71,6 +71,7 @@
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>KX165</object-name>
<object-name>Screen</object-name>
</effect>
<effect>
@ -102,7 +103,6 @@
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<object-name>Screen</object-name>
</effect>
<animation>

View file

@ -71,6 +71,7 @@
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>KX165</object-name>
<object-name>Screen</object-name>
</effect>
<effect>
@ -102,7 +103,6 @@
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<object-name>Screen</object-name>
</effect>
<animation>

View file

@ -294,7 +294,7 @@
<property>/sim/model/c172p/garmin196-visible</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>clock</object-name>
@ -304,7 +304,7 @@
</not>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>digital-clock</object-name>
@ -566,11 +566,6 @@
<front-left>/controls/climate-control/overhead-vent-front-left</front-left>
<front-right>/controls/climate-control/overhead-vent-front-right</front-right>
</air-vents>
<cockpit>
<electrical>
<gear-amphibious>/sim/model/c172p/lighting/amphibious</gear-amphibious>
</electrical>
</cockpit>
</params>
<!-- exterior effects -->
@ -1066,7 +1061,7 @@
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
</emission>
</animation>
<!-- Courtesy Light -->
<animation>
<type>material</type>
@ -10372,579 +10367,6 @@
</axis>
</animation>
<!-- Amphibious Gear Instrumentation -->
<animation>
<type>select</type>
<object-name>Switch.nut</object-name>
<object-name>Dim.bezel</object-name>
<object-name>Dim.toggle</object-name>
<object-name>GearAdvisory</object-name>
<object-name>GearFace</object-name>
<object-name>Gearswitch</object-name>
<object-name>GearScrews</object-name>
<condition>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
</condition>
</animation>
<!-- Dim Toggle Switch -->
<animation>
<type>pick</type>
<object-name>Dim.toggle</object-name>
<visible>true</visible>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>/controls/lighting/gearled</property>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("avionics")</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>led-dim-switch</tooltip-id>
<label>Dim Gear Panel LED's</label>
</binding>
</hovered>
</animation>
<animation>
<type>rotate</type>
<object-name>Dim.toggle</object-name>
<property>/controls/lighting/gearled</property>
<factor>30</factor>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>-0.35939</x-m>
<y-m> 0.22687</y-m>
<z-m> 0.09171</z-m>
</center>
</animation>
<animation>
<type>material</type>
<object-name>GearAdvisory</object-name>
<condition>
<and>
<greater-than>
<property>/velocities/groundspeed-kt</property>
<value>10</value>
</greater-than>
<less-than>
<property>/velocities/groundspeed-kt</property>
<value>70</value>
</less-than>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
<emission>
<red>1</red>
<green>0.26</green>
<blue>0.05</blue>
<factor-prop>/controls/lighting/factor-led</factor-prop>
</emission>
</animation>
<model>
<name>GearAdvisoryled</name>
<path>Effects/interior/procedural_light_indicator_led_orange_large.xml</path>
<offsets>
<x-m>-0.354 </x-m>
<y-m> 0.28093</y-m>
<z-m> 0.11269</z-m>
</offsets>
<condition>
<and>
<greater-than>
<property>/velocities/groundspeed-kt</property>
<value>10</value>
</greater-than>
<less-than>
<property>/velocities/groundspeed-kt</property>
<value>70</value>
</less-than>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<!-- Gear Down - land -->
<animation>
<type>select</type>
<object-name>nosedn1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>nosedn1led</name>
<path>Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241 </y-m>
<z-m> 0.08082</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>nosedn2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>nosedn2led</name>
<path>Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254</y-m>
<z-m> 0.08083</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>maindn1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>maindn1led</name>
<path>Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241</y-m>
<z-m> 0.06783</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>maindn2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>maindn2led</name>
<path>Effects/interior/procedural_light_indicator_led_green.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254</y-m>
<z-m> 0.06784</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>1.0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<!-- Gear Up - water -->
<animation>
<type>select</type>
<object-name>noseup1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>noseup1led</name>
<path>Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241 </y-m>
<z-m> 0.11959</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>noseup2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>noseup2led</name>
<path>Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254 </y-m>
<z-m> 0.11959</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/front-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>mainup1</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>mainup1led</name>
<path>Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.241 </y-m>
<z-m> 0.10677</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-left-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>select</type>
<object-name>mainup2</object-name>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>mainup2led</name>
<path>Effects/interior/procedural_light_indicator_led_blue.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.254 </y-m>
<z-m> 0.10678</z-m>
</offsets>
<condition>
<and>
<equals>
<property alias="/params/gear-amphibious/rear-right-position-norm"/>
<value>0</value>
</equals>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<!-- in transit -->
<animation>
<type>select</type>
<object-name>pump</object-name>
<condition>
<and>
<greater-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</greater-than>
<less-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</less-than>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
</and>
</condition>
</animation>
<model>
<name>pumpled</name>
<path>Effects/interior/procedural_light_indicator_led_red.xml</path>
<offsets>
<x-m>-0.3555 </x-m>
<y-m> 0.247 </y-m>
<z-m> 0.09396</z-m>
</offsets>
<condition>
<and>
<greater-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>0</value>
</greater-than>
<less-than>
<property alias="/params/gear-amphibious/front-left-position-norm"/>
<value>1.0</value>
</less-than>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
<property alias="/params/cockpit/electrical/gear-amphibious"/>
<greater-than>
<property>/sim/rendering/shaders/model</property>
<value>1</value>
</greater-than>
</and>
</condition>
</model>
<animation>
<type>material</type>
<object-name>noseup1</object-name>
<object-name>noseup2</object-name>
<object-name>mainup1</object-name>
<object-name>mainup2</object-name>
<object-name>nosedn1</object-name>
<object-name>nosedn2</object-name>
<object-name>maindn1</object-name>
<object-name>maindn2</object-name>
<object-name>pump</object-name>
<emission>
<red> .3</red>
<green>.3</green>
<blue> .3</blue>
<factor-prop>/controls/lighting/factor-led</factor-prop>
</emission>
</animation>
<animation>
<type>rotate</type>
<object-name>Gearswitch</object-name>
<property>controls/gear/gear-down</property>
<factor>45</factor>
<axis>
<x> 0</x>
<y> 1</y>
<z> 0</z>
</axis>
<center>
<x-m>-0.35905</x-m>
<y-m> 0.27999</y-m>
<z-m> 0.0751</z-m>
</center>
</animation>
<animation>
<type>pick</type>
<object-name>Gearswitch</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>controls/gear/gear-down</property>
</binding>
</action>
</animation>
<!-- END MOD: Pontoon Gear -->
<!-- Baggage models -->
<model>
<name>suitcase1</name>

View file

@ -1,6 +1,30 @@
List of features and bug fixes
==============================
Version 2020.1
--------------
**Features:**
* New sounds for rolling and tire screeching on both paves and gravel surfaces
* Replaced the KX165 with the KX165A radio which supports 8.33 frequencies
* New mooring locations
* `f` shortcut now toggles flashlight
**Fixes:**
* Fixed xy-plane and missing texture error messages
* Corrected a segfault caused when you lower and then raise the amphibious gear on land
* Turn coordinator gyros breaker was not hooked up
* Fix amphibious gear control breaker logic
* Amphibious gear switch now does not triger repair timer while pontoon damaged
* Initialization of new traversing property which is may prevent issues on some systems
* Fix strong pitch oscillations at rest with brakes on and with pure crosswind
* Fix Nasal error due to a typo in avionics.nas
* Changing xml version to 1.0 in xml file headers as this is the supported version
* Radio tutorial now requires the user to turn on the battery and avionics switches
* Fixed minor spelling mistake in preflight tutorial
Version 2019.1
--------------
@ -23,7 +47,6 @@ Version 2019.1
* Reshape and widen 26" and 36" bush tires to 12" and 15"
* Autostart function includes auto-mixture
**Fixes:**
* Exterior fuselage mesh cleanup

View file

@ -162,4 +162,7 @@ aircraft.data.add(
"/controls/circuit-breakers/strobe",
"/controls/circuit-breakers/turn-coordinator",
"/controls/circuit-breakers/cabin",
"/controls/circuit-breakers/gear-select",
"/controls/circuit-breakers/gear-advisory",
"/controls/circuit-breakers/hydraulic-pump",
);

View file

@ -43,6 +43,17 @@ var autostart = func (msg=1) {
setprop("/controls/switches/dome-red", 1);
}
# Setting amphibious landing gear if needed
if (getprop("/fdm/jsbsim/bushkit")==4){
if (getprop("/fdm/jsbsim/hydro/active-norm")) {
setprop("controls/gear/gear-down-command", 0);
setprop("/fdm/jsbsim/gear/gear-pos-norm", 0);
} else {
setprop("controls/gear/gear-down-command", 1);
setprop("/fdm/jsbsim/gear/gear-pos-norm", 1);
}
}
# Setting flaps to 0
setprop("/controls/flight/flaps", 0.0);

View file

@ -183,6 +183,12 @@ var reset_battery_and_circuit_breakers = func {
setprop("/controls/circuit-breakers/radio4", 1);
setprop("/controls/circuit-breakers/radio5", 1);
setprop("/controls/circuit-breakers/autopilot", 1);
if (getprop("/fdm/jsbsim/bushkit") == 4) {
setprop("/controls/circuit-breakers/gear-select", 1);
setprop("/controls/circuit-breakers/gear-advisory", 1);
setprop("/controls/circuit-breakers/hydraulic-pump", 1);
}
}
##
@ -420,6 +426,30 @@ var electrical_bus_1 = func() {
setprop("/systems/electrical/outputs/DG", 0.0);
}
# Gear Select Power
if ( getprop("/controls/circuit-breakers/gear-select") ) {
setprop("/systems/electrical/outputs/gear-select", bus_volts);
load += bus_volts / 5;
} else {
setprop("/systems/electrical/outputs/gear-select", 0.0);
}
# Gear Advisory Power
if ( getprop("/controls/circuit-breakers/gear-advisory") ) {
setprop("/systems/electrical/outputs/gear-advisory", bus_volts);
load += bus_volts / 2;
} else {
setprop("/systems/electrical/outputs/gear-advisory", 0.0);
}
# Hydraulic Pump Power
if ( getprop("/controls/circuit-breakers/hydraulic-pump") ) {
setprop("/systems/electrical/outputs/hydraulic-pump", bus_volts);
load += bus_volts / 40;
} else {
setprop("/systems/electrical/outputs/hydraulic-pump", 0.0);
}
# register bus voltage
ebus1_volts = bus_volts;

View file

@ -8,6 +8,21 @@ var reset_all_damage = func
setprop("/fdm/jsbsim/gear/unit[1]/broken", 0);
setprop("/fdm/jsbsim/gear/unit[2]/broken", 0);
setprop("/fdm/jsbsim/gear/unit[19]/broken", 0);
setprop("/fdm/jsbsim/gear/unit[20]/broken", 0);
setprop("/fdm/jsbsim/gear/unit[21]/broken", 0);
setprop("/fdm/jsbsim/gear/unit[22]/broken", 0);
if (getprop("/fdm/jsbsim/bushkit")==3) {
if (getprop("/fdm/jsbsim/hydro/active-norm")) {
setprop("controls/gear/gear-down-command", 0);
setprop("/fdm/jsbsim/gear/gear-pos-norm", 0);
} else {
setprop("controls/gear/gear-down-command", 1);
setprop("/fdm/jsbsim/gear/gear-pos-norm", 1);
}
}
# Wings
setprop("/fdm/jsbsim/wing-damage/left-wing", 0);
setprop("/fdm/jsbsim/wing-damage/right-wing", 0);
@ -122,7 +137,7 @@ var poll_hydro = func
# Duration in which no damage will occur. Assumes the aircraft has
# stabilized within this duration.
var bushkit_change_timeout = 3.0;
var bushkit_change_timeout = 8.0;
var physics_loop = func
{
@ -150,6 +165,7 @@ var set_bushkit = func (bushkit) {
# changing to the last bush kit option.
var bushkit_changed_timer = maketimer(bushkit_change_timeout, func {
setprop("/fdm/jsbsim/damage/repairing", 0);
setprop("/fdm/jsbsim/damage/traversing", 0);
});
bushkit_changed_timer.singleShot = 1;
@ -180,3 +196,10 @@ setlistener("/fdm/jsbsim/wing-damage/right-wing", func (n) {
killengine();
}, 0, 0);
setlistener("controls/gear/gear-down-command", func (n) {
if (getprop("/fdm/jsbsim/pontoon-damage/left-pontoon")==0 and getprop("/fdm/jsbsim/pontoon-damage/right-pontoon")==0) {
setprop("/fdm/jsbsim/damage/traversing", 1);
bushkit_changed_timer.restart(bushkit_change_timeout);
}
}, 0, 0);

View file

@ -9,51 +9,45 @@ var state_manager = func {
setprop("/orientation/pitch-deg", 0);
}
# Reset battery charge and circuit breakers
electrical.reset_battery_and_circuit_breakers();
setprop("/consumables/fuel/tank[0]/selected", 1);
setprop("/consumables/fuel/tank[1]/selected", 1);
var auto_mixture = getprop("/fdm/jsbsim/engine/auto-mixture");
setprop("/controls/engines/current-engine/mixture", auto_mixture);
# removing any ice from the carburetor
setprop("/engines/active-engine/carb_ice", 0.0);
setprop("/engines/active-engine/carb_icing_rate", 0.0);
setprop("/controls/engines/current-engine/carb-heat", 1);
setprop("/engines/active-engine/running", 1);
setprop("/engines/active-engine/auto-start", 1);
setprop("/engines/active-engine/cranking", 1);
setprop("/controls/switches/starter", 1);
setprop("/controls/engines/engine[0]/primer", 3);
setprop("/controls/engines/engine[0]/primer-lever", 0);
setprop("/controls/engines/current-engine/throttle", 0.2);
setprop("/controls/flight/elevator-trim", -0.03);
setprop("/consumables/fuel/tank[0]/selected", 1);
setprop("/consumables/fuel/tank[1]/selected", 1);
setprop("/controls/circuit-breakers/aircond", 1);
setprop("/controls/circuit-breakers/autopilot", 1);
setprop("/controls/circuit-breakers/bcnlt", 1);
setprop("/controls/circuit-breakers/flaps", 1);
setprop("/controls/circuit-breakers/instr", 1);
setprop("/controls/circuit-breakers/intlt", 1);
setprop("/controls/circuit-breakers/landing", 1);
setprop("/controls/circuit-breakers/master", 1);
setprop("/controls/circuit-breakers/navlt", 1);
setprop("/controls/circuit-breakers/pitot-heat", 1);
setprop("/controls/circuit-breakers/radio1", 1);
setprop("/controls/circuit-breakers/radio2", 1);
setprop("/controls/circuit-breakers/radio3", 1);
setprop("/controls/circuit-breakers/radio4", 1);
setprop("/controls/circuit-breakers/radio5", 1);
setprop("/controls/circuit-breakers/strobe", 1);
setprop("/controls/circuit-breakers/turn-coordinator", 1);
setprop("/controls/circuit-breakers/cabin", 1);
setprop("/controls/switches/dome-red", 0);
setprop("/controls/switches/dome-white", 0);
setprop("/controls/switches/magnetos", 3);
setprop("/controls/switches/master-bat", 1);
setprop("/controls/switches/master-alt", 1);
setprop("/controls/switches/master-avionics", 1);
setprop("/controls/gear/gear-down", 1);
setprop("/controls/engines/current-engine/carb-heat", 1);
setprop("/controls/switches/starter", 1);
setprop("/controls/lighting/beacon", 1);
setprop("/controls/lighting/taxi-light", 0);
setprop("/sim/model/c172p/brake-parking", 0);
setprop("/fdm/jsbsim/running", 0);
setprop("/fdm/jsbsim/inertia/pointmass-weight-lbs[0]", 170);
setprop("/fdm/jsbsim/inertia/pointmass-weight-lbs[1]", 0);
setprop("/sim/model/c172p/securing/tiedownL-visible", 0);
setprop("/sim/model/c172p/securing/tiedownR-visible", 0);
setprop("/sim/model/c172p/securing/tiedownT-visible", 0);
@ -62,6 +56,12 @@ var state_manager = func {
setprop("/sim/model/c172p/securing/cowl-plugs-visible", 0);
setprop("/sim/model/c172p/cockpit/control-lock-placed", 0);
if (getprop("/fdm/jsbsim/bushkit") == 4) {
setprop("/controls/gear/gear-down-command", 1);
}
setprop("/sim/model/c172p/brake-parking", 0);
var distance_nm = getprop("/sim/presets/offset-distance-nm") or 0;
var engine_running_check_delay = 5.0;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -951,6 +951,45 @@
</input>
<output>/sim/model/lightmap/combined/factor-glassglare</output>
</filter>
<logic>
<name>Amphibious Panel Lights On/Off</name>
<input>
<and>
<less-than>
<property>/systems/electrical/outputs/gear-select</property>
<value>31.5</value>
</less-than>
<greater-than>
<property>/systems/electrical/outputs/gear-select</property>
<value>20.0</value>
</greater-than>
</and>
</input>
<output>
<property>/sim/model/c172p/lighting/gear-select</property>
</output>
</logic>
<logic>
<name>Amphibious Advisory Lights On/Off</name>
<input>
<and>
<less-than>
<property>systems/electrical/outputs/gear-advisory</property>
<value>31.5</value>
</less-than>
<greater-than>
<property>/systems/electrical/outputs/gear-advisory</property>
<value>20.0</value>
</greater-than>
</and>
</input>
<output>
<property>/sim/model/c172p/lighting/gear-advisory</property>
</output>
</logic>
<filter>
<name>Gear Glare Dim</name>
<type>gain</type>
@ -959,7 +998,7 @@
<condition>
<and>
<property>/controls/lighting/gearled</property>
<property>/sim/model/c172p/lighting/amphibious</property>
<property>/sim/model/c172p/lighting/gear-advisory</property>
</and>
</condition>
<value>.35</value>
@ -971,7 +1010,7 @@
<property>/controls/lighting/gearled</property>
<value>0</value>
</equals>
<property>/sim/model/c172p/lighting/amphibious</property>
<property>/sim/model/c172p/lighting/gear-select</property>
</and>
</condition>
<value>.175</value>
@ -988,7 +1027,7 @@
<condition>
<and>
<property>/controls/lighting/gearled</property>
<property>/sim/model/c172p/lighting/amphibious</property>
<property>/sim/model/c172p/lighting/gear-select</property>
</and>
</condition>
<value>1</value>
@ -1000,7 +1039,7 @@
<property>/controls/lighting/gearled</property>
<value>0</value>
</equals>
<property>/sim/model/c172p/lighting/amphibious</property>
<property>/sim/model/c172p/lighting/gear-select</property>
</and>
</condition>
<value>.35</value>

View file

@ -143,6 +143,145 @@
</channel>
<channel name="amphibious-gear-forces">
<!--
Numbers MUST be the same coefficients as spring_coeff and
damping_coeff in the FDM for nose and main gear!
-->
<fcs_function name="damage/amph-force-left-nose-gear">
<function>
<sum>
<product>
<value>1000</value><!-- spring coefficient -->
<property>gear/unit[19]/compression-ft</property>
</product>
<product>
<value>600</value><!-- damping coefficient -->
<property>gear/unit[19]/compression-velocity-fps</property>
</product>
</sum>
</function>
</fcs_function>
<fcs_function name="damage/amph-force-right-nose-gear">
<function>
<sum>
<product>
<value>1000</value><!-- spring coefficient -->
<property>gear/unit[20]/compression-ft</property>
</product>
<product>
<value>600</value><!-- damping coefficient -->
<property>gear/unit[20]/compression-velocity-fps</property>
</product>
</sum>
</function>
</fcs_function>
<fcs_function name="damage/amph-force-left-gear">
<function>
<sum>
<product>
<value>5400</value><!-- spring coefficient -->
<property>gear/unit[21]/compression-ft</property>
</product>
<product>
<value>1600</value><!-- damping coefficient -->
<property>gear/unit[21]/compression-velocity-fps</property>
</product>
</sum>
</function>
</fcs_function>
<fcs_function name="damage/amph-force-right-gear">
<function>
<sum>
<product>
<value>5400</value><!-- spring coefficient -->
<property>gear/unit[22]/compression-ft</property>
</product>
<product>
<value>1600</value><!-- damping coefficient -->
<property>gear/unit[22]/compression-velocity-fps</property>
</product>
</sum>
</function>
</fcs_function>
<switch name="amph-left-nose-gear-broken">
<output>gear/unit[19]/broken</output>
<default value="gear/unit[19]/broken"/>
<!-- No damage -->
<test logic="OR" value="0">
settings/damage EQ 0
damage/repairing EQ 1
simulation/sim-time-sec LT 0.25
</test>
<test logic="AND" value="1">
damage/amph-force-left-nose-gear GT 1500.0
gear/unit[19]/compression-ft GT 0.3
</test>
</switch>
<switch name="amph-right-nose-gear-broken">
<output>gear/unit[20]/broken</output>
<default value="gear/unit[20]/broken"/>
<!-- No damage -->
<test logic="OR" value="0">
settings/damage EQ 0
damage/repairing EQ 1
simulation/sim-time-sec LT 0.25
</test>
<test logic="AND" value="1">
damage/amph-force-right-nose-gear GT 1500.0
gear/unit[20]/compression-ft GT 0.3
</test>
</switch>
<switch name="amph-left-gear-broken">
<output>gear/unit[21]/broken</output>
<default value="gear/unit[21]/broken"/>
<!-- No damage -->
<test logic="OR" value="0">
settings/damage EQ 0
damage/repairing EQ 1
simulation/sim-time-sec LT 0.25
</test>
<!-- [1] used to guess required force -->
<test logic="AND" value="1">
damage/amph-force-left-gear GT 6500.0
gear/unit[21]/compression-ft GT 0.8
</test>
</switch>
<switch name="amph-right-gear-broken">
<output>gear/unit[22]/broken</output>
<default value="gear/unit[22]/broken"/>
<!-- No damage -->
<test logic="OR" value="0">
settings/damage EQ 0
damage/repairing EQ 1
simulation/sim-time-sec LT 0.25
</test>
<!-- [1] used to guess required force -->
<test logic="AND" value="1">
damage/amph-force-right-gear GT 6500.0
gear/unit[22]/compression-ft GT 0.8
</test>
</switch>
</channel>
<channel name="wing-damage">
<!-- Roll moment due to (diedra + roll rate + yaw rate + ailerons) -->
@ -392,6 +531,7 @@
<test logic="OR" value="0">
settings/damage EQ 0
damage/repairing EQ 1
damage/traversing EQ 1
simulation/sim-time-sec LT 0.25
</test>
<test logic="AND" value="0">
@ -420,8 +560,8 @@
contact/unit[13]/compression-ft GT 0.75
contact/unit[15]/compression-ft GT 0.75
contact/unit[17]/compression-ft GT 0.75
gear/unit[19]/compression-ft GT 0.75
gear/unit[21]/compression-ft GT 0.75
gear/unit[19]/broken EQ 1
gear/unit[21]/broken EQ 1
</test>
</switch>
@ -434,6 +574,7 @@
<test logic="OR" value="0">
settings/damage EQ 0
damage/repairing EQ 1
damage/traversing EQ 1
simulation/sim-time-sec LT 0.25
</test>
<test logic="AND" value="0">
@ -462,8 +603,8 @@
contact/unit[14]/compression-ft GT 0.75
contact/unit[16]/compression-ft GT 0.75
contact/unit[18]/compression-ft GT 0.75
gear/unit[20]/compression-ft GT 0.75
gear/unit[22]/compression-ft GT 0.75
gear/unit[19]/broken EQ 1
gear/unit[21]/broken EQ 1
</test>
</switch>

View file

@ -1195,150 +1195,193 @@
</switch>
<!-- ================================================================== -->
<!-- Contact points pontoons snow -->
<!-- Contact points pontoons snow -->
<!-- ================================================================== -->
<fcs_function name="z-position-ground-factor-left-forward-pontoons">
<output>contact/unit[13]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/left-pontoon</p>
<p>contact/unit[13]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[13]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[13]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[13]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.02</value>
</product>
</sum>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[13]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[13]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[13]/z-position</p>
</ifthen>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.02</value>
</product>
</sum>
<p>contact/unit[13]/z-position</p>
</ifthen>
</function>
</fcs_function>
<fcs_function name="z-position-ground-factor-left-aft-pontoons">
<output>contact/unit[15]/z-position</output>
<function>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[15]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[15]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[15]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.04</value>
</product>
</sum>
<p>contact/unit[15]/z-position</p>
</ifthen>
</function>
</fcs_function>
<fcs_function name="z-position-ground-factor-left-aft-pontoons">
<output>contact/unit[17]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/left-pontoon</p>
<p>contact/unit[15]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[17]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[17]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[15]/z-position</p>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[17]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[17]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[17]/z-position</p>
<product>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.04</value>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
</sum>
<p>contact/unit[15]/z-position</p>
</ifthen>
<value>0.04</value>
</product>
</sum>
<p>contact/unit[17]/z-position</p>
</ifthen>
</function>
</fcs_function>
<fcs_function name="z-position-ground-factor-right-forward-pontoon">
<output>contact/unit[14]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/right-pontoon</p>
<p>contact/unit[14]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[14]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[14]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[14]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.02</value>
</product>
</sum>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[14]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[14]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[14]/z-position</p>
</ifthen>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.02</value>
</product>
</sum>
<p>contact/unit[14]/z-position</p>
</ifthen>
</function>
</fcs_function>
<fcs_function name="z-position-ground-factor-right-aft-pontoon">
<output>contact/unit[16]/z-position</output>
<function>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[16]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[16]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[16]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.04</value>
</product>
</sum>
<p>contact/unit[16]/z-position</p>
</ifthen>
</function>
</fcs_function>
<fcs_function name="z-position-ground-factor-right-aft-pontoon">
<output>contact/unit[18]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/right-pontoon</p>
<p>contact/unit[16]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[18]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[18]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[16]/z-position</p>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>contact/unit[18]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>contact/unit[18]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>contact/unit[18]/z-position</p>
<product>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.04</value>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
</sum>
<p>contact/unit[16]/z-position</p>
</ifthen>
<value>0.04</value>
</product>
</sum>
<p>contact/unit[18]/z-position</p>
</ifthen>
</function>
</fcs_function>
@ -1360,34 +1403,30 @@
<output>gear/unit[19]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/left-pontoon</p>
<p>gear/unit[19]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[19]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[19]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[19]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.07</value>
</product>
</sum>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[19]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[19]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[19]/z-position</p>
</ifthen>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.07</value>
</product>
</sum>
<p>gear/unit[19]/z-position</p>
</ifthen>
</function>
</fcs_function>
@ -1405,34 +1444,30 @@
<output>gear/unit[20]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/right-pontoon</p>
<p>gear/unit[20]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[20]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[20]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[20]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.07</value>
</product>
</sum>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[20]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[20]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[20]/z-position</p>
</ifthen>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.07</value>
</product>
</sum>
<p>gear/unit[20]/z-position</p>
</ifthen>
</function>
</fcs_function>
@ -1450,34 +1485,30 @@
<output>gear/unit[21]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/left-pontoon</p>
<p>gear/unit[21]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[21]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[21]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[21]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.08</value>
</product>
</sum>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[21]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[21]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[21]/z-position</p>
</ifthen>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.08</value>
</product>
</sum>
<p>gear/unit[21]/z-position</p>
</ifthen>
</function>
</fcs_function>
@ -1495,34 +1526,30 @@
<output>gear/unit[22]/z-position</output>
<function>
<ifthen>
<p>pontoon-damage/right-pontoon</p>
<p>gear/unit[22]/z-position</p>
<ifthen>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[22]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[22]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[22]/z-position</p>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.08</value>
</product>
</sum>
<and>
<p>ground/snow-possible</p>
<or>
<gt>
<p>gear/unit[22]/rolling_friction-factor</p>
<v>2</v>
</gt>
<lt>
<p>gear/unit[22]/rolling_friction-factor</p>
<v>1</v>
</lt>
</or>
</and>
<sum>
<p>gear/unit[22]/z-position</p>
</ifthen>
<product>
<product>
<p>/environment/surface/snow-thickness-factor</p>
<p>/environment/surface/snow-thickness-multiplier</p>
</product>
<value>0.08</value>
</product>
</sum>
<p>gear/unit[22]/z-position</p>
</ifthen>
</function>
</fcs_function>
@ -1576,9 +1603,12 @@
<fcs_function name="gear/gear-burn-left">
<function>
<product>
<property>/gear/gear[1]/wow</property>
<or>
<property>/gear/gear[1]/wow</property>
<property>/gear/gear[20]/wow</property>
</or>
<property>/velocities/groundspeed-kt</property>
<property>/fdm/jsbsim/ground/solid</property>
<property>ground/solid</property>
<product>
<or>
<property>/controls/gear/brake-parking</property>
@ -1596,9 +1626,12 @@
<fcs_function name="gear/gear-burn-right">
<function>
<product>
<property>/gear/gear[2]/wow</property>
<or>
<property>/gear/gear[2]/wow</property>
<property>/gear/gear[22]/wow</property>
</or>
<property>/velocities/groundspeed-kt</property>
<property>/fdm/jsbsim/ground/solid</property>
<property>ground/solid</property>
<product>
<or>
<property>/controls/gear/brake-parking</property>
@ -1613,6 +1646,54 @@
</function>
</fcs_function>
<switch name="gear-on-pavement">
<output>gear/on-pavement</output>
<default value="0"/>
<test logic="OR" value="1">
ground/bumpiness LT 0.02
</test>
</switch>
<fcs_function name="gear/gear-screech">
<function>
<product>
<property>gear/on-pavement</property>
<or>
<gt>
<property>gear/gear-burn-left</property>
<value>0</value>
</gt>
<gt>
<property>gear/gear-burn-right</property>
<value>0</value>
</gt>
</or>
<property>/velocities/groundspeed-kt</property>
</product>
</function>
</fcs_function>
<fcs_function name="gear/gear-drag">
<function>
<product>
<not>
<property>gear/on-pavement</property>
</not>
<or>
<gt>
<property>gear/gear-burn-left</property>
<value>0</value>
</gt>
<gt>
<property>gear/gear-burn-right</property>
<value>0</value>
</gt>
</or>
<property>/velocities/groundspeed-kt</property>
</product>
</function>
</fcs_function>
<fcs_function name="ground/tail-ground-effect-speed-kt">
<function>
<product>

View file

@ -33,4 +33,44 @@
</output>
</logic>
<logic>
<name>Hydraulic On/Off</name>
<input>
<and>
<less-than>
<property>systems/electrical/outputs/hydraulic-pump</property>
<value>31.5</value>
</less-than>
<greater-than>
<property>systems/electrical/outputs/hydraulic-pump</property>
<value>20.0</value>
</greater-than>
<property>/controls/switches/master-bat</property>
</and>
</input>
<output>
<property>/sim/model/c172p/hydraulics/hydraulic-pump</property>
</output>
</logic>
<logic>
<name>Amphibious Gear Hydraulic Damage</name>
<input>
<and>
<equals>
<property>fdm/jsbsim/pontoon-damage/left-pontoon</property>
<value>0</value>
</equals>
<equals>
<property>fdm/jsbsim/pontoon-damage/right-pontoon</property>
<value>0</value>
</equals>
<property>controls/gear/gear-down-command</property>
</and>
</input>
<output>
<property>controls/gear/gear-down</property>
</output>
</logic>
</PropertyList>

View file

@ -411,22 +411,15 @@
</filter>
<logic>
<name>Amphibious Panel Lights On/Off</name>
<name>Turn Indicator Serviceable</name>
<input>
<and>
<less-than>
<property>systems/electrical/outputs/instrument-lights</property>
<value>31.5</value>
</less-than>
<greater-than>
<property>systems/electrical/outputs/instrument-lights</property>
<value>20.0</value>
</greater-than>
<property>/controls/switches/master-avionics</property>
</and>
<greater-than>
<property>systems/electrical/outputs/turn-coordinator</property>
<value>6.0</value>
</greater-than>
</input>
<output>
<property>/sim/model/c172p/lighting/amphibious</property>
<property>instrumentation/turn-coordinator/serviceable</property>
</output>
</logic>

View file

@ -717,4 +717,20 @@ Wayne Bragg/c172p-detailed, April 2018
<heading-deg type="double">245.0</heading-deg>
</seaplane>
<!-- Brooks Seaplane Base S76, Coeur D Alene Airport KCOE Idaho -->
<seaplane n="60">
<airport-id type="string">KCOE</airport-id>
<latitude-deg type="double">47.66</latitude-deg>
<longitude-deg type="double">-116.79</longitude-deg>
<heading-deg type="double">180.0</heading-deg>
</seaplane>
<!-- Lake Pend Orielle S96, Idaho -->
<seaplane n="61">
<airport-id type="string">KSZT</airport-id>
<latitude-deg type="double">48.216944</latitude-deg>
<longitude-deg type="double">-116.367778</longitude-deg>
<heading-deg type="double">0.0</heading-deg>
</seaplane>
</PropertyList>

View file

@ -835,7 +835,7 @@ This tutorial will guide you through the Preflight inspection
</step>
<step>
<message>If the sample is light blue, the fuel isn't contaminated and you can return it to the tank. If it's transparent, it's contaminated: You have to discard the it.</message>
<message>If the sample is light blue, the fuel isn't contaminated and you can return it to the tank. If it's transparent, it's contaminated: You have to discard it.</message>
<wait>10</wait>
<error>
<message>There's still water in the fuel. Discard the sample and take a new one.</message>

View file

@ -36,6 +36,18 @@ weather, the altimeter setting and the runway in use.
<property>/sim/model/c172p/brake-parking</property>
<value>1</value>
</set>
<set>
<property>/controls/switches/master-bat</property>
<value>false</value>
</set>
<set>
<property>/sim/model/hide-yoke</property>
<value>false</value>
</set>
<set>
<property>/controls/switches/master-avionics</property>
<value>false</value>
</set>
<set>
<property>/controls/flight/flaps</property>
<value>0.0</value>
@ -85,8 +97,7 @@ weather, the altimeter setting and the runway in use.
<value>false</value>
</set>
<message>In this lesson, you'll learn how to tune the radio to the ATIS of Hilo Intl,
which is the nearest one with ATIS.
The radio is in the middle of the center console.</message>
which is the nearest one with ATIS.</message>
<view>
<heading-offset-deg>0.0</heading-offset-deg>
<pitch-offset-deg>-12</pitch-offset-deg>
@ -98,6 +109,99 @@ weather, the altimeter setting and the runway in use.
<wait>10</wait>
</step>
<step>
<message>First you need to power the aircraft by switching the battery on.</message>
<view>
<heading-offset-deg>9.2</heading-offset-deg>
<pitch-offset-deg>-24.3</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.4</x-offset-m>
<y-offset-m>-0.1</y-offset-m>
<z-offset-m>0.2</z-offset-m>
<field-of-view>48.4</field-of-view>
</view>
<set>
<property>/sim/model/hide-yoke</property>
<value>true</value>
</set>
<marker>
<x-m>-0.3124</x-m>
<y-m>-0.4083</y-m>
<z-m>-0.1917</z-m>
<scale>2.0909</scale>
</marker>
<error>
<message>We now power the radio-stack, so you have to switch the battery on.</message>
<condition>
<not>
<property>/controls/switches/master-bat</property>
</not>
</condition>
</error>
<exit>
<condition>
<property>/controls/switches/master-bat</property>
</condition>
</exit>
</step>
<step>
<message>Then switch the master avionics on to start the radio stack</message>
<view>
<heading-offset-deg>12.2</heading-offset-deg>
<pitch-offset-deg>-35.2</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.2</x-offset-m>
<y-offset-m>0.3</y-offset-m>
<z-offset-m>0.4</z-offset-m>
<field-of-view>35.0</field-of-view>
</view>
<marker>
<x-m>-0.3500</x-m>
<y-m>-0.3233</y-m>
<z-m>-0.2261</z-m>
<scale>1.3688</scale>
</marker>
<error>
<message>Flip the master avionics switch...</message>
<condition>
<equals>
<property>/controls/switches/master-avionics</property>
<value>0</value>
</equals>
</condition>
</error>
<exit>
<condition>
<equals>
<property>/controls/switches/master-avionics</property>
<value>1</value>
</equals>
</condition>
</exit>
</step>
<step>
<message>The radio is in the middle of the center console.</message>
<view>
<heading-offset-deg>0.0</heading-offset-deg>
<pitch-offset-deg>-12</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.21</x-offset-m>
<y-offset-m>0.19</y-offset-m>
<field-of-view>73.6</field-of-view>
</view>
<set>
<property>/sim/model/hide-yoke</property>
<value>false</value>
</set>
<wait>5</wait>
</step>
<step>
<message>There are 4 radios on this aircraft - two for communication (COMM1, COMM2) and two for navigation (NAV1, NAV2).
Each radio has an active frequency and a standby frequency.

View file

@ -13,7 +13,7 @@
<desc>Toggle yokes hidden/visible</desc>
</key>
<key>
<name>f</name>
<name>f/F</name>
<desc>Toggle flashlight white/red/off</desc>
</key>
<key>

View file

@ -297,6 +297,10 @@
<property>gear/gear[0]/wow</property>
<property>gear/gear[1]/wow</property>
<property>gear/gear[2]/wow</property>
<property>gear/gear[19]/wow</property>
<property>gear/gear[20]/wow</property>
<property>gear/gear[21]/wow</property>
<property>gear/gear[22]/wow</property>
</or>
<less-than>
<property>velocities/vertical-speed-fps</property>
@ -331,6 +335,150 @@
<max-dist>200.0</max-dist>
</squeal>
<pavement-roll>
<name>pavement-roll</name>
<mode>looped</mode>
<path>Sounds/tires-rolling-asphalt.wav</path>
<condition>
<and>
<property>/fdm/jsbsim/gear/on-pavement</property>
<or>
<property>gear/gear[0]/wow</property>
<property>gear/gear[1]/wow</property>
<property>gear/gear[2]/wow</property>
<property>gear/gear[19]/wow</property>
<property>gear/gear[20]/wow</property>
<property>gear/gear[21]/wow</property>
<property>gear/gear[22]/wow</property>
</or>
<or>
<greater-than>
<property>/gear/gear[0]/rollspeed-ms</property>
<value>5</value>
</greater-than>
<greater-than>
<property>/gear/gear[1]/rollspeed-ms</property>
<value>5</value>
</greater-than>
<greater-than>
<property>/gear/gear[2]/rollspeed-ms</property>
<value>5</value>
</greater-than>
</or>
</and>
</condition>
<position>
<x>0.5</x>
<y>0.0</y>
<z>-1.15</z>
</position>
<volume>
<property>velocities/groundspeed-kt</property>
<type>log</type>
<factor>0.25</factor>
</volume>
<volume>
<property>/sim/model/c172p/sound/volume-boost-doors</property>
</volume>
<reference-dist>2.5</reference-dist>
<max-dist>200.0</max-dist>
</pavement-roll>
<gravel-roll>
<name>gravel-roll</name>
<mode>looped</mode>
<path>Sounds/tires-rolling-gravel.wav</path>
<condition>
<and>
<not>
<property>/fdm/jsbsim/gear/on-pavement</property>
</not>
<or>
<property>gear/gear[0]/wow</property>
<property>gear/gear[1]/wow</property>
<property>gear/gear[2]/wow</property>
<property>gear/gear[19]/wow</property>
<property>gear/gear[20]/wow</property>
<property>gear/gear[21]/wow</property>
<property>gear/gear[22]/wow</property>
</or>
<or>
<greater-than>
<property>/gear/gear[0]/rollspeed-ms</property>
<value>5</value>
</greater-than>
<greater-than>
<property>/gear/gear[1]/rollspeed-ms</property>
<value>5</value>
</greater-than>
<greater-than>
<property>/gear/gear[2]/rollspeed-ms</property>
<value>5</value>
</greater-than>
</or>
</and>
</condition>
<position>
<x>0.5</x>
<y>0.0</y>
<z>-1.15</z>
</position>
<volume>
<property>velocities/groundspeed-kt</property>
<type>log</type>
<factor>0.25</factor>
</volume>
<volume>
<property>/sim/model/c172p/sound/volume-boost-doors</property>
</volume>
<reference-dist>2.5</reference-dist>
<max-dist>200.0</max-dist>
</gravel-roll>
<gear-screech>
<name>gear-screech</name>
<mode>looped</mode>
<path>Sounds/tires-screech-asphalt.wav</path>
<condition>
<greater-than>
<property>/fdm/jsbsim/gear/gear-screech</property>
<value>1</value>
</greater-than>
</condition>
<position>
<x>0.5</x>
<y>0.0</y>
<z>-1.15</z>
</position>
<volume>
<property>/sim/model/c172p/sound/volume-boost-doors</property>
</volume>
<reference-dist>2.5</reference-dist>
<max-dist>200.0</max-dist>
</gear-screech>
<gear-drag>
<name>gear-drag</name>
<mode>once</mode>
<path>Sounds/tires-screech-gravel-oneshot.wav</path>
<condition>
<greater-than>
<property>/fdm/jsbsim/gear/gear-drag</property>
<value>1</value>
</greater-than>
</condition>
<position>
<x>0.5</x>
<y>0.0</y>
<z>-1.15</z>
</position>
<volume>
<property>/sim/model/c172p/sound/volume-boost-doors</property>
</volume>
<reference-dist>2.5</reference-dist>
<max-dist>200.0</max-dist>
</gear-drag>
<flap>
<name>flaps</name>
<mode>in-transit</mode>

View file

@ -1,4 +1,4 @@
<?xml version="1.1"?>
<?xml version="1.0"?>
<!--
************************************************************************
c172p simulation configuration. This files ties together all the components
@ -25,11 +25,17 @@ model, instrument panel, and external 3D model.
<controls>
<engines>
<active-engine type="int">1</active-engine>
<gear>
<gear-down-command type="bool">true</gear-down-command>
</gear>
</engines>
</controls>
<fdm>
<jsbsim>
<bushkit type="int">4</bushkit>
<gear>
<gear-pos-norm type="bool">1</gear-pos-norm>
</gear>
</jsbsim>
</fdm>
</PropertyList>

View file

@ -1,4 +1,4 @@
<?xml version="1.1"?>
<?xml version="1.0"?>
<!--
************************************************************************
c172p simulation configuration. This files ties together all the components

View file

@ -1,4 +1,4 @@
<?xml version="1.1"?>
<?xml version="1.0"?>
<!--
************************************************************************
c172p simulation configuration. This files ties together all the components

View file

@ -66,6 +66,16 @@
</binding>
</key>
<key n="102">
<name>f</name>
<desc>Toggle flashlight</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>c172p.toggle_flashlight()</script>
</binding>
</key>
<key n="108">
<name>l</name>
<desc>Increase Panel lighting</desc>

View file

@ -46,7 +46,7 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
<author>Original by David Megginson, gsagostinho (Gilberto Agostinho), wlbragg (Wayne Bragg), Juanvvc (Juan Vera del Campo), onox, thevirtualfer, Dany93 (Daniel Dubreuil), legoboyvdlp (Jonathan Redpath), dg-505 (Jonathan Schellhase), tigert (Tuomas Kuosmanen), AndersG (Anders Gidenstam), wkitty42 (Waldo Kitty), algefaen, Horacio, D-ECHO, Jarl Arntzen (jarlarntzen)</author>
<status>advanced production</status>
<aircraft-version>2019.1</aircraft-version>
<aircraft-version>2020.1</aircraft-version>
<minimum-fg-version>2018.2.0</minimum-fg-version>
<rating>
<FDM type="int">5</FDM>
@ -658,6 +658,7 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
<water-rudder type="bool">0</water-rudder>
<water-rudder-down type="double">0</water-rudder-down>
<brake-parking type="bool">true</brake-parking>
<gear-down-command type="bool">0</gear-down-command>
</gear>
<mooring>
<automatic type="bool">false</automatic>
@ -1125,6 +1126,18 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
<unit n="2">
<broken type="bool">0</broken>
</unit>
<unit n="19">
<broken type="bool">0</broken>
</unit>
<unit n="20">
<broken type="bool">0</broken>
</unit>
<unit n="21">
<broken type="bool">0</broken>
</unit>
<unit n="22">
<broken type="bool">0</broken>
</unit>
</gear>
<contact>
<unit n="4">
@ -1150,6 +1163,7 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
</pontoon-damage>
<damage>
<repairing type="bool">false</repairing>
<traversing type="bool">false</traversing>
</damage>
<settings>
<damage type="bool">true</damage>
@ -1181,13 +1195,13 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
<systems>
<electrical>
<outputs>
<flaps type="double">0.0</flaps>
<hydraulic-pump type="float">0.0</hydraulic-pump>
<gear-select type="float">0.0</gear-select>
<gear-advisory type="float">0.0</gear-advisory>
</outputs>
<save-battery-charge type="bool">false</save-battery-charge>
</electrical>
<mooring>
<boat-id></boat-id>

View file

@ -1,4 +1,4 @@
<?xml version="1.1"?>
<?xml version="1.0"?>
<!--
************************************************************************
c172p simulation configuration. This files ties together all the components

View file

@ -1070,8 +1070,7 @@
to its input in order to disable it.
-->
<test logic="OR" value="gear/gear-pos-norm">
/systems/electrical/outputs/instrument-lights le 20.0
/controls/switches/master-avionics eq 0
/sim/model/c172p/hydraulics/hydraulic-pump eq 0
</test>
</switch>
<kinematic name="Gr">
@ -1486,9 +1485,13 @@
</function>
<function name="aero/coefficient/CLadot">
<!-- 'qbar-psf' has been replaced by 'qbarUW-psf'.
See JSBSim issue #89 Pitch oscillations at rest, Brakes "ON", with pure crosswind
https://github.com/JSBSim-Team/jsbsim/issues/89 -->
<description>Lift_due_to_alpha_rate</description>
<product>
<property>aero/qbar-psf</property>
<!-- <property>aero/qbar-psf</property> -->
<property>aero/qbarUW-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/alphadot-rad_sec</property>
<property>aero/ci2vel</property>
@ -1720,9 +1723,13 @@
</function>
<function name="aero/coefficient/Cmadot">
<!-- 'qbar-psf' has been replaced by 'qbarUW-psf'.
See JSBSim issue #89 Pitch oscillations at rest, Brakes "ON", with pure crosswind
https://github.com/JSBSim-Team/jsbsim/issues/89 -->
<description>Pitch_moment_due_to_alpha_rate</description>
<product>
<property>aero/qbar-psf</property>
<!-- <property>aero/qbar-psf</property> -->
<property>aero/qbarUW-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/ci2vel</property>