fix throttle animation, make EPR doughnuts blue
This commit is contained in:
parent
f89ecab09a
commit
339f8cdca5
3 changed files with 25 additions and 15 deletions
|
@ -2074,10 +2074,10 @@
|
|||
<type>rotate</type>
|
||||
<object-name>thr_l</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<not-equals>
|
||||
<property>/controls/engines/engine[0]/reverser</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
<value>1</value>
|
||||
</not-equals>
|
||||
</condition>
|
||||
<property>controls/engines/engine[0]/throttle-pos</property>
|
||||
<interpolation>
|
||||
|
@ -2163,10 +2163,10 @@
|
|||
<type>rotate</type>
|
||||
<object-name>thr_r</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<not-equals>
|
||||
<property>/controls/engines/engine[0]/reverser</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
<value>1</value>
|
||||
</not-equals>
|
||||
</condition>
|
||||
<property>controls/engines/engine[1]/throttle-pos</property>
|
||||
<interpolation>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
AC3Db
|
||||
MATERIAL "ac3dmat1" rgb 1 1 1 amb 0.2 0.2 0.2 emis 1 1 1 spec 0 0 0 shi 128 trans 0
|
||||
MATERIAL "DefaultWhite.001" rgb 0 0 0 amb 0 0 0 emis 0 0 0 spec 0 0 0 shi 64 trans 0
|
||||
MATERIAL "ac3dmat9" rgb 0 0.4 0.8 amb 0 0.4 0.8 emis 1 1 1 spec 0 0 0 shi 0 trans 0
|
||||
MATERIAL "ac3dmat9" rgb 0 0.356863 0.717647 amb 0 0 0 emis 0 0.356863 0.717647 spec 0 0 0 shi 0 trans 0
|
||||
OBJECT world
|
||||
kids 17
|
||||
OBJECT poly
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# A320 FBW System by Joshua Davidson (it0uchpods/411)
|
||||
# V0.9
|
||||
# Airbus A3XX FBW System by Joshua Davidson (it0uchpods/411)
|
||||
# V0.9.1
|
||||
|
||||
########################
|
||||
# Roll Update Function #
|
||||
########################
|
||||
|
||||
var roll_input = func {
|
||||
|
||||
|
@ -68,10 +72,12 @@ var roll_input = func {
|
|||
if (getprop("/gear/gear[0]/wow") == 1) {
|
||||
setprop("/it-fbw/roll-deg", "0");
|
||||
}
|
||||
|
||||
settimer(roll_input, 0.01);
|
||||
}
|
||||
|
||||
#########################
|
||||
# Pitch Update Function #
|
||||
#########################
|
||||
|
||||
var pitch_input = func {
|
||||
|
||||
var elev = getprop("/controls/flight/elevator");
|
||||
|
@ -154,8 +160,6 @@ var pitch_input = func {
|
|||
setprop("/it-fbw/pitch-deg", getprop("/orientation/pitch-deg"));
|
||||
}
|
||||
}
|
||||
|
||||
settimer(pitch_input, 0.01);
|
||||
}
|
||||
|
||||
setlistener("/it-autoflight/output/ap1", func {
|
||||
|
@ -184,8 +188,8 @@ setlistener("/it-fbw/law", func {
|
|||
|
||||
setlistener("/sim/signals/fdm-initialized", func {
|
||||
setprop("/it-fbw/law", "DIRECT");
|
||||
roll_input();
|
||||
pitch_input();
|
||||
update_roll.start();
|
||||
update_pitch.start();
|
||||
print("AIRBUS FBW ... OK!");
|
||||
});
|
||||
|
||||
|
@ -200,3 +204,9 @@ setlistener("/systems/electrical/bus/ac-ess", func {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
##########
|
||||
# Timers #
|
||||
##########
|
||||
var update_roll = maketimer(0.01, roll_input);
|
||||
var update_pitch = maketimer(0.01, pitch_input);
|
||||
|
|
Reference in a new issue