FBW improvements, etc
This commit is contained in:
parent
a1bfea36ab
commit
faf5093366
5 changed files with 31 additions and 23 deletions
|
@ -1,10 +1,10 @@
|
||||||
# A320 EFIS controller by Joshua Davidson (it0uchpods/411).
|
# A3XX EFIS controller by Joshua Davidson (it0uchpods).
|
||||||
|
|
||||||
setlistener("sim/signals/fdm-initialized", func {
|
setlistener("sim/signals/fdm-initialized", func {
|
||||||
setprop("instrumentation/efis/mfd/pnl_mode-num", 3);
|
setprop("instrumentation/efis/mfd/pnl_mode-num", 3);
|
||||||
setprop("/controls/lighting/ndl-norm", "1");
|
setprop("/controls/lighting/ndl-norm", "1");
|
||||||
setprop("/controls/lighting/ndr-norm", "1");
|
setprop("/controls/lighting/ndr-norm", "1");
|
||||||
print("EFIS ... FINE!");
|
print("EFIS ... Done!");
|
||||||
});
|
});
|
||||||
|
|
||||||
# Captain
|
# Captain
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Airbus A3XX FBW System by Joshua Davidson (it0uchpods/411)
|
# Airbus A3XX FBW System by Joshua Davidson (it0uchpods)
|
||||||
# V0.9.6
|
# V0.9.6
|
||||||
|
|
||||||
########################
|
########################
|
||||||
|
@ -87,7 +87,7 @@ setlistener("/sim/signals/fdm-initialized", func {
|
||||||
setprop("/it-fbw/law", 2);
|
setprop("/it-fbw/law", 2);
|
||||||
update_roll.start();
|
update_roll.start();
|
||||||
update_pitch.start();
|
update_pitch.start();
|
||||||
print("AIRBUS FBW ... OK!");
|
print("AIRBUS FBW ... Done!");
|
||||||
});
|
});
|
||||||
|
|
||||||
setlistener("/systems/electrical/bus/ac-ess", func {
|
setlistener("/systems/electrical/bus/ac-ess", func {
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
# A320 Throttle Control System by Joshua Davidson (it0uchpods/411)
|
# A3XX Throttle Control System by Joshua Davidson (it0uchpods)
|
||||||
# Set A/THR modes to Custom IT-AUTOTHRUST, and other thrust modes like MCT, TOGA and eventually TO FLEX.
|
# Set A/THR modes to Custom IT-AUTOTHRUST, and other thrust modes like MCT, TOGA and eventually TO FLEX.
|
||||||
# Also handles FADEC
|
# Also handles FADEC
|
||||||
# V1.9
|
# V1.9.1
|
||||||
|
|
||||||
setlistener("/sim/signals/fdm-initialized", func {
|
setlistener("/sim/signals/fdm-initialized", func {
|
||||||
setprop("/systems/thrust/state1", "IDLE");
|
setprop("/systems/thrust/state1", "IDLE");
|
||||||
setprop("/systems/thrust/state2", "IDLE");
|
setprop("/systems/thrust/state2", "IDLE");
|
||||||
setprop("/systems/thrust/lvrclb", "0");
|
setprop("/systems/thrust/lvrclb", "0");
|
||||||
setprop("/systems/thrust/clbreduc-ft", "1500");
|
setprop("/systems/thrust/clbreduc-ft", "1500");
|
||||||
lvrclb();
|
lvrclbt.start();
|
||||||
print("FADEC ... Done!")
|
print("FADEC ... Done!")
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -81,14 +81,20 @@ var lvrclb = func {
|
||||||
} else {
|
} else {
|
||||||
var status = getprop("/systems/thrust/lvrclb");
|
var status = getprop("/systems/thrust/lvrclb");
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
|
if (getprop("/systems/thrust/state1") == "MAN" or getprop("/systems/thrust/state2") == "MAN") {
|
||||||
|
setprop("/systems/thrust/lvrclb", "1");
|
||||||
|
} else {
|
||||||
if (getprop("/instrumentation/altimeter/indicated-altitude-ft") >= getprop("/systems/thrust/clbreduc-ft")) {
|
if (getprop("/instrumentation/altimeter/indicated-altitude-ft") >= getprop("/systems/thrust/clbreduc-ft")) {
|
||||||
setprop("/systems/thrust/lvrclb", "1");
|
setprop("/systems/thrust/lvrclb", "1");
|
||||||
} else {
|
} else {
|
||||||
setprop("/systems/thrust/lvrclb", "0");
|
setprop("/systems/thrust/lvrclb", "0");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
setprop("/systems/thrust/lvrclb", "0");
|
setprop("/systems/thrust/lvrclb", "0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
settimer(lvrclb, 0.5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Timers
|
||||||
|
var lvrclbt = maketimer(0.5, lvrclb);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
<!-- IT-AUTOFLIGHT: Fly By Wire -->
|
<!-- Airbus A3XX FBW System by Joshua Davidson (it0uchpods) -->
|
||||||
|
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
<!-- Airbus A3XX FBW System by Joshua Davidson (it0uchpods) and Richard Harrison (richard) -->
|
||||||
|
|
||||||
<system name="it-fbw">
|
<system name="it-fbw">
|
||||||
<property value="0">/it-fbw/law</property>
|
<property value="0">/it-fbw/law</property>
|
||||||
<property value="0">/it-fbw/roll-deg</property>
|
<property value="0">/it-fbw/roll-deg</property>
|
||||||
|
@ -40,19 +42,19 @@
|
||||||
<table>
|
<table>
|
||||||
<independentVar lookup="row">/controls/flight/aileron</independentVar>
|
<independentVar lookup="row">/controls/flight/aileron</independentVar>
|
||||||
<tableData>
|
<tableData>
|
||||||
-1.0 -0.2
|
-1.0 -0.3
|
||||||
-0.7 -0.1
|
-0.7 -0.2
|
||||||
-0.5 -0.05
|
-0.5 -0.1
|
||||||
-0.3 -0.01
|
-0.3 -0.05
|
||||||
-0.15 -0.005
|
-0.15 -0.01
|
||||||
-0.05 -0.001
|
-0.05 -0.005
|
||||||
0.00 0.00
|
0.00 0.00
|
||||||
0.05 0.001
|
0.05 0.005
|
||||||
0.15 0.005
|
0.15 0.01
|
||||||
0.3 0.01
|
0.3 0.05
|
||||||
0.5 0.05
|
0.5 0.1
|
||||||
0.7 0.1
|
0.7 0.2
|
||||||
1.0 0.2
|
1.0 0.3
|
||||||
</tableData>
|
</tableData>
|
||||||
</table>
|
</table>
|
||||||
</sum>
|
</sum>
|
||||||
|
|
Reference in a new issue