a bunch of minor fixes and changes

This commit is contained in:
Joshua Davidson 2017-02-11 00:49:01 -05:00
parent 592cbfb3e8
commit 5b657d94ba
10 changed files with 14 additions and 518 deletions

View file

@ -4,7 +4,7 @@
<sim>
<author>Joshua Davidson (it0uchpods/411), J Redpath (YV-LEGO)</author>
<author>Joshua Davidson (it0uchpods/411)</author>
<model>
<pushback>
@ -41,7 +41,7 @@
<path>Aircraft/A320Family/Systems/custom-autothrust.xml</path>
</autopilot>
<autopilot>
<path>Aircraft/A320Family/Systems/thrust.xml</path>
<path>Aircraft/A320Family/Systems/thrust-iae.xml</path>
</autopilot>
<autopilot>
<name>Custom engine values system</name>

View file

@ -41,7 +41,7 @@ setlistener("/it-autoflight/mode/lat", func {
} else if (lat == "LOC") {
setprop("/modes/pfd/fma/roll-mode", "LOC");
} else if (lat == "ALGN") {
setprop("/modes/pfd/fma/roll-mode", "ALN");
setprop("/modes/pfd/fma/roll-mode", "LAND");
} else if (lat == "T/O") {
setprop("/modes/pfd/fma/roll-mode", "RWY");
}

View file

@ -1,4 +1,4 @@
# A340 EFIS controller by Joshua Davidson (it0uchpods/411).
# A320 EFIS controller by Joshua Davidson (it0uchpods/411).
setlistener("sim/signals/fdm-initialized", func {
setprop("instrumentation/efis/mfd/pnl_mode-num", 3);

View file

@ -1,125 +0,0 @@
#### A320 Hydraulics System ####
#### Jonathan Redpath ####
print("Hydraulics: Initializing");
var hyd_init = func {
setprop("/hydraulics/greenpump",0);
setprop("/hydraulics/blueelecpump",0);
setprop("/hydraulics/yellowpump",0);
setprop("/hydraulics/yellowelecpump",0);
setprop("/hydraulics/greenreservoir","14.5"); #MAX 14.5 L -- LO LVL 3.5 L -- NORM is 12L
setprop("/hydraulics/bluereservoir","6.5"); #MAX 6.5 L -- LO LVL 2.4 L -- NORM is 5L
setprop("/hydraulics/yellowreservoir","12.5"); #MAX 12.5 L -- LO LVL 3.5 L -- NORM is 10L
setprop("/hydraulics/greenpumpppb","0"); #0 is off, 1 is fault, 2 is on
setprop("/hydraulics/bluepumppb","0"); #0 is off, 1 is fault, 2 is auto
setprop("/hydraulics/yellowpumppb","0"); #0 is off, 1 is fault, 2 is on
setprop("/hydraulics/blueovrd","0"); #0 is off, 1 is on if blue pump set to AUTO
print("Hydraulics: Pumps and Reservoirs Initialized");
setprop("/hydraulics/ptu",0);
setprop("/hydraulics/ratextended",0);
setprop("/hydraulics/ratmanguard",0);
setprop("/hydraulics/ratmanext",0);
setprop("/hydraulics/ratextended",0);
setprop("/hydraulics/ratmanguard",0);
setprop("/hydraulics/ratelecguard",0);
setprop("/hydraulics/ratelecconnect",0);
setprop("/hydraulics/ratmanext",0);
print("Hydraulics: PTU and RAT Initialized");
setprop("/hydraulics/greenpsi","0");
setprop("/hydraulics/bluepsi","0");
setprop("/hydraulics/yellowpsi","0");
setprop("/hydraulics/greenmaxpsi","3000");
setprop("/hydraulics/bluemaxpsi","3000");
setprop("/hydraulics/yellowmaxpsi","3000");
setprop("/hydraulics/yellowhandpump",0);
setprop("/hydraulics/greenandyellowdiff","0");
setprop("/hydraulics/greenaccum","0");
setprop("/hydraulics/blueaccum","0");
setprop("/hydraulics/yellowaccum","0");
print("Hydraulics: System Settings Initialized");
setprop("/hydraulics/greenfirevalve",0);
setprop("/hydraulics/blueleakvalve",0); #0 is ON ie normal 1 is OFF ie cutoff
setprop("/hydraulics/greenleakvalve",0); #0 is ON ie normal 1 is OFF ie cutoff
setprop("/hydraulics/yellowleakvalve",0); #0 is ON ie normal 1 is OFF ie cutoff
setprop("/hydraulics/yellowfirevalve",0);
setprop("/hydraulics/greentemp","0");
setprop("/hydraulics/bluetemp","0");
setprop("/hydraulics/yellowtemp","0");
print("Hydraulics: Valves and Other Stuff Initialized");
print("Hydraulics: Loaded!");
}
# PTU Operation -- conditions --
# if on ground park brake off AND NWS not in 'tow' position, ie off
# if in flight: both masters ON or OFF
# the above AND 500 psi diff between green and yellow
# cargo door operation and YELLOW P/B OFF inhibits PTU operation. PTU op is not allowed for 40 sec after cargo door opr
# inhibited on first engine start attempt
# self test on second start attempt
# RAT --
# powers blue system if no elec or no engines
# deployed if AC BUS 1 and AC BUS 2 are lost
# also deployed manually
# OHP -- on HYD panel powers the HYD
# OHP -- on EMER ELEC panel powers EMER GEN
# MX retracts it on ground
# Reservoirs --
# pressurized by ENG 1 BLEED
# if no ENG 1 pressurized by XFEED duct
# 2.4 L -- LO LVL (blue)
# 0.5 L -- LO LVL (yellow / green)
# Yellow sys --
# When cargo door open or closed by manual system it turns off the other yellow system except for altn braking and no 2 reverser
# makes an 'OFF' on the OHP yellow pump switch
# Priority Valves --
# Priority valves are there to shut off HYD availability to anything that uses a lot of HYD power if the fluid becomes low
# GRN - NWS, SLTS, FLPS, L/G
# BLU - EMER GEN, SLTS
# YLW - FLPS
# OHP --
# Pump PBs --
# ENG 1 PUMP
# Green System
# OFF -- pump depressurizes
# ON -- pump pressurizes when eng 1 running
# FAULT -- over heat, lo lvl, lo reservoir pressure (not enough bleed air), or lo pump pressure (inhibited on ground
# BLUE ELEC PUMP
# Blue System
# OFF -- no electricity to blue pump
# AUTO -- pump pressurizes in flight or when one engine is running (or if BLUE PUMP OVRD on MX panel is pushed)
# FAULT -- over heat, lo lvl, lo reservoir pressure (not enough bleed air), pump overheat, or lo pump pressure (inhibited on ground
# ENG 2 PUMP
# Yellow System
# OFF -- pump depressurizes
# ON -- pump pressurizes when eng 1 running
# FAULT -- over heat, lo lvl, lo reservoir pressure (not enough bleed air), or lo pump pressure (inhibited on ground)
# YELLOW ELEC PUMP
# Yellow System
# OFF -- pump depressurizes (reverts to this if AC power is lost and restored)
# ON -- pump pressurizes if AC power avail
# FAULT -- over heat, lo lvl, lo reservoir pressure (not enough bleed air), pump overheat, or lo pump pressure (inhibited on ground)
#
# PTU PB
# AUTO -- pump armed, valves open
# OFF -- valves closes, pump off
# FAULT -- either green or yellow reservoir LO AIR PR or OVHT or LOW LVL
# RAT MAN ON PB
# Push: extend manually
# Guard: must be removed first
# MX PANEL -- AFT OHP
# BLUE PUMP OVRD --
# ON -- if BLUE ELEC PUMP AUTO turn on BLUE ELEC pump
# OFF -- turn off blue elec pump
# LEAK MEASUREMENT VALVES --
# B G Y
# ON -- normal
# OFF -- cut off to relevant flight controls in case of leak by closing electrohydrualic valve

View file

@ -1,3 +1,2 @@
# A320Family
Airbus A320 Family for FlightGear. Note: Flaps indicator still missing from ECAM, coming soon!
Airbus A320 Family for FlightGear. Note: Flaps indicator still missing from ECAM, coming soon! CFM engines will be added once all engine related systems are mostly complete.

View file

@ -51,7 +51,6 @@
<property>/engines/engine[0]/n1</property>
<entry><ind> 0</ind><dep>037</dep></entry>
<entry><ind> 8</ind><dep>037</dep></entry>
<entry><ind> 12</ind><dep>631</dep></entry>
<entry><ind> 23</ind><dep>415</dep></entry>
<entry><ind>110</ind><dep>642</dep></entry>
</table>
@ -71,7 +70,6 @@
<property>/engines/engine[1]/n1</property>
<entry><ind> 0</ind><dep>037</dep></entry>
<entry><ind> 8</ind><dep>037</dep></entry>
<entry><ind> 12</ind><dep>631</dep></entry>
<entry><ind> 23</ind><dep>415</dep></entry>
<entry><ind>110</ind><dep>642</dep></entry>
</table>

View file

@ -99,7 +99,7 @@
<update-interval-secs type="double">0.05</update-interval-secs>
<gain>1.0</gain>
<input>
<property>/it-autoflight/settings/target-altitude-ft-actual</property>
<property>/it-autoflight/internal/alt</property>
</input>
<reference>
<property>instrumentation/altimeter/indicated-altitude-ft</property>
@ -163,8 +163,8 @@
<output>instrumentation/pfd/heading-deg</output>
<enable>
<equals>
<property>/flight-management/control/lat-ctrl</property>
<value>man-set</value>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
</enable>
</filter>
@ -187,8 +187,8 @@
<output>instrumentation/pfd/track-deg</output>
<enable>
<equals>
<property>/flight-management/control/lat-ctrl</property>
<value>man-set</value>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
</enable>
</filter>
@ -213,8 +213,8 @@
<output>instrumentation/pfd/track-diff</output>
<enable>
<equals>
<property>/flight-management/control/ver-sub</property>
<value>fpa</value>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</enable>
</filter>
@ -245,8 +245,8 @@
</period>
<enable>
<equals>
<property>/flight-management/control/lat-ctrl</property>
<value>man-set</value>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
</enable>
</filter>

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<tutorial include="startup.xml" />
</PropertyList>

View file

@ -1,371 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<name>Startup</name>
<description>Learn how to start the engines and prepare for takeoff in this ultra-modern twinjet.</description>
<presets>
<on-ground type="bool">true</on-ground>
</presets>
<init>
<set>
<property>controls/gear/brake-parking</property>
<value type="bool">true</value>
</set>
<set>
<property>controls/engines/engine[0]/throttle</property>
<value>0</value>
</set>
<set>
<property>controls/engines/engine[1]/throttle</property>
<value>0</value>
</set>
<set>
<property>engines/engine[0]/running</property>
<value type="bool">false</value>
</set>
<set>
<property>engines/engine[1]/running</property>
<value type="bool">false</value>
</set>
</init>
<step>
<message>Welcome aboard the Airbus A320, one of the most sophisticated narrowbody jetliners of
the modern age!</message>
</step>
<step>
<message>In this tutorial, we will learn how to start the engines and prepare for takeoff.
First, ensure all doors are closed (click them to open/close) and all passengers and
cargo have been loaded.</message>
</step>
<step>
<message>The electrical system is currently dormant. Reach up to the overhead panel and turn
on external power. This will give us electrical power on the ground, but will be useless
once we start moving!</message>
<view>
<heading-offset-deg>293.0</heading-offset-deg>
<pitch-offset-deg>30.9</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>24.1</field-of-view>
</view>
<marker>
<x-m>4.7283</x-m>
<y-m>0.0408</y-m>
<z-m>1.0292</z-m>
<scale>1.6000</scale>
</marker>
<exit>
<condition>
<property>controls/electric/external-power</property>
</condition>
</exit>
</step>
<step>
<message>To start the engines, we need to turn on the APU (auxilary power unit). Turn the APU starter
switch on.</message>
<view>
<heading-offset-deg>309.6</heading-offset-deg>
<pitch-offset-deg>19.8</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>24.1</field-of-view>
</view>
<marker>
<x-m>4.5108</x-m>
<y-m>0.0008</y-m>
<z-m>0.8908</z-m>
<scale>1.6000</scale>
</marker>
<exit>
<condition>
<property>controls/APU/starter</property>
</condition>
</exit>
</step>
<step>
<message>Turn the APU master switch on.</message>
<view>
<heading-offset-deg>309.6</heading-offset-deg>
<pitch-offset-deg>19.8</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>24.1</field-of-view>
</view>
<marker>
<x-m>4.5383</x-m>
<y-m>0.0008</y-m>
<z-m>0.9092</z-m>
<scale>1.6000</scale>
</marker>
<exit>
<condition>
<property>controls/APU/master-switch</property>
</condition>
</exit>
</step>
<step>
<message>The APU will now spool up. During this time, "APU STARTING" will appear on the EICAS. When
the APU is fully started, "APU RUNNING" will appear.</message>
<exit>
<condition>
<property>engines/apu/running</property>
</condition>
</exit>
</step>
<step>
<message>Turn on the APU electric generator, which will provide electrical power to the airplane
without external assistance. Turn off the external power switch, as we don't need external
power anymore.</message>
<view>
<heading-offset-deg>297.0</heading-offset-deg>
<pitch-offset-deg>34.5</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>24.1</field-of-view>
</view>
<marker>
<x-m>4.7292</x-m>
<y-m>-0.0442</y-m>
<z-m>1.0233</z-m>
<scale>1.6</scale>
</marker>
<exit>
<condition>
<and>
<property>controls/electric/APU-generator</property>
<not>
<property>controls/electric/external-power</property>
</not>
</and>
</condition>
</exit>
</step>
<step>
<message>Now let's start the engines. Set the engine start switch to ignition/start
mode (click it once).</message>
<view>
<heading-offset-deg>294.3</heading-offset-deg>
<pitch-offset-deg>-53.7</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>21.6</field-of-view>
</view>
<marker>
<x-m>4.7275</x-m>
<y-m>-0.0008</y-m>
<z-m>-0.1300</z-m>
<scale>2.6667</scale>
</marker>
<exit>
<condition>
<equals>
<property>controls/engines/engine-start-switch</property>
<value>2</value>
</equals>
</condition>
</exit>
</step>
<step>
<message>Wait a few seconds for ignition to begin, and then switch the engine master
switches to on.</message>
<marker>
<x-m>4.6917</x-m>
<y-m>0.0017</y-m>
<z-m>-0.1192</z-m>
<scale>3.3833</scale>
</marker>
<exit>
<condition>
<and>
<not>
<property>controls/engines/engine[0]/cutoff</property>
</not>
<not>
<property>controls/engines/engine[1]/cutoff</property>
</not>
</and>
</condition>
</exit>
</step>
<step>
<message>Now wait for the engines to spool up to 30% N1 and become responsive.</message>
<view>
<heading-offset-deg>328.0</heading-offset-deg>
<pitch-offset-deg>-22.5</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>13.9</field-of-view>
</view>
<exit>
<condition>
<and>
<property>engines/engine[0]/running</property>
<property>engines/engine[1]/running</property>
</and>
</condition>
</exit>
</step>
<step>
<message>Set the engine start switch back to normal mode (middle-click it once).</message>
<view>
<heading-offset-deg>294.3</heading-offset-deg>
<pitch-offset-deg>-53.7</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>21.6</field-of-view>
</view>
<marker>
<x-m>4.7275</x-m>
<y-m>-0.0008</y-m>
<z-m>-0.1300</z-m>
<scale>2.6667</scale>
</marker>
<exit>
<condition>
<equals>
<property>controls/engines/engine-start-switch</property>
<value>1</value>
</equals>
</condition>
</exit>
</step>
<step>
<message>Now that the engines are running, turn on the engine 1 electric generator.</message>
<view>
<heading-offset-deg>295.2</heading-offset-deg>
<pitch-offset-deg>33.0</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>24.1</field-of-view>
</view>
<marker>
<x-m>4.7292</x-m>
<y-m>-0.1017</y-m>
<z-m>1.0233</z-m>
<scale>1.6</scale>
</marker>
<exit>
<condition>
<property>controls/electric/engine[0]/generator</property>
</condition>
</exit>
</step>
<step>
<message>Turn on the engine 2 electric generator.</message>
<marker>
<x-m>4.7292</x-m>
<y-m>0.0983</y-m>
<z-m>1.0233</z-m>
<scale>1.6</scale>
</marker>
<exit>
<condition>
<property>controls/electric/engine[1]/generator</property>
</condition>
</exit>
</step>
<step>
<message>We are now generating electrical power through the engines. Turn off
the APU generator, as it is no longer needed.</message>
<exit>
<condition>
<not>
<property>controls/electric/APU-generator</property>
</not>
</condition>
</exit>
</step>
<step>
<message>We don't need the APU anymore, so shut it down; turn the APU starter
switch and the APU master switch off.</message>
<view>
<heading-offset-deg>309.6</heading-offset-deg>
<pitch-offset-deg>19.8</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>24.1</field-of-view>
</view>
<exit>
<condition>
<and>
<not>
<property>controls/APU/starter</property>
</not>
<not>
<property>controls/APU/master-switch</property>
</not>
</and>
</condition>
</exit>
</step>
<step>
<message>Now turn on the fasten seatbelt sign- just a standard precaution. ;)</message>
<view>
<heading-offset-deg>308.3</heading-offset-deg>
<pitch-offset-deg>18.0</pitch-offset-deg>
<roll-offset-deg>0.0</roll-offset-deg>
<x-offset-m>-0.5</x-offset-m>
<y-offset-m>2.4</y-offset-m>
<z-offset-m>-13.9</z-offset-m>
<field-of-view>24.1</field-of-view>
</view>
<marker>
<x-m>4.5242</x-m>
<y-m>0.0200</y-m>
<z-m>0.8850</z-m>
<scale>2.0667</scale>
</marker>
<exit>
<condition>
<property>controls/switches/seatbelt-sign</property>
</condition>
</exit>
</step>
<step>
<message>One last thing before we taxi; turn on the appropriate aircraft lights. For
taxiing, strobe lights and beacon lights should be turned on and the nav/logo lights
should be set to either 1 or 2.</message>
</step>
<end>
<message>Congratulations! You have successfully started an A320 without sending an ACARS fault message to Airbus.</message>
</end>
</PropertyList>