1
0
Fork 0

Sim: Cleanup more useless sh*t

This commit is contained in:
Josh Davidson 2021-04-27 08:07:26 -04:00
parent 11686f5ef1
commit 89b5590d01
5 changed files with 8 additions and 32 deletions

View file

@ -893,11 +893,6 @@
<man-start type="bool">0</man-start>
<starter type="bool">0</starter>
<starter-switch type="bool">0</starter-switch>
<!-- Remove these throttles... -->
<throttle-pos type="double">0</throttle-pos>
<throttle-output type="double">0</throttle-output>
<throttle-fdm type="double">0</throttle-fdm>
<throttle-rev type="double">0</throttle-rev>
<reverse-cmd type="bool">0</reverse-cmd>
<reverse-lever type="double">0</reverse-lever>
<igniter-a type="bool">0</igniter-a>
@ -913,11 +908,6 @@
<man-start type="bool">0</man-start>
<starter type="bool">0</starter>
<starter-switch type="bool">0</starter-switch>
<!-- Remove these throttles... -->
<throttle-pos type="double">0</throttle-pos>
<throttle-output type="double">0</throttle-output>
<throttle-fdm type="double">0</throttle-fdm>
<throttle-rev type="double">0</throttle-rev>
<reverse-cmd type="bool">0</reverse-cmd>
<reverse-lever type="double">0</reverse-lever>
<igniter-a type="bool">0</igniter-a>
@ -927,8 +917,6 @@
<engine n="2">
<cutoff type="bool">true</cutoff>
<starter type="bool">0</starter>
<throttle-output type="double">0</throttle-output>
<throttle-fdm type="double">0</throttle-fdm>
</engine>
</engines>
<fctl>

View file

@ -27,8 +27,6 @@ var roll_mode = props.globals.getNode("/modes/pfd/fma/roll-mode", 1);
var roll_mode_armed = props.globals.getNode("/modes/pfd/fma/roll-mode-armed", 1);
var roll_mode_box = props.globals.getNode("/modes/pfd/fma/roll-mode-box", 1);
var roll_mode_armed_box = props.globals.getNode("/modes/pfd/fma/roll-mode-armed-box", 1);
var thr1 = props.globals.getNode("/controls/engines/engine[0]/throttle-pos", 1);
var thr2 = props.globals.getNode("/controls/engines/engine[1]/throttle-pos", 1);
var wow0 = props.globals.getNode("/gear/gear[0]/wow");
var wow1 = props.globals.getNode("/gear/gear[1]/wow");
var wow2 = props.globals.getNode("/gear/gear[2]/wow");
@ -330,8 +328,6 @@ var canvas_PFD_base = {
thrust_limit_act = thrust_limit.getValue();
alpha_floor_act = alpha_floor.getValue();
toga_lk_act = toga_lk.getValue();
thr1_act = thr1.getValue();
thr2_act = thr2.getValue();
# Attitude Indicator
pitch_cur = pitch.getValue();

View file

@ -29,8 +29,6 @@ var newthr = nil;
var state1 = nil;
var state2 = nil;
var thr = nil;
var thr1 = nil;
var thr2 = nil;
var trk = nil;
var vert = nil;
var vertText = nil;
@ -112,8 +110,6 @@ var init = func() {
var loopFMA = maketimer(0.05, func {
state1 = systems.FADEC.detentText[0].getValue();
state2 = systems.FADEC.detentText[1].getValue();
thr1 = pts.Controls.Engines.Engine.throttlePos[0].getValue();
thr2 = pts.Controls.Engines.Engine.throttlePos[1].getValue();
newthr = Modes.PFD.FMA.throttle.getValue();
engout = systems.FADEC.engOut.getValue();

View file

@ -33,10 +33,6 @@ var Controls = {
reverseLever: [props.globals.getNode("/controls/engines/engine[0]/reverse-lever"), props.globals.getNode("/controls/engines/engine[1]/reverse-lever")],
starter: [props.globals.getNode("/controls/engines/engine[0]/starter"), props.globals.getNode("/controls/engines/engine[1]/starter")],
throttle: [props.globals.getNode("/controls/engines/engine[0]/throttle"), props.globals.getNode("/controls/engines/engine[1]/throttle")],
throttleFdm: [props.globals.getNode("/controls/engines/engine[0]/throttle-fdm"), props.globals.getNode("/controls/engines/engine[1]/throttle-fdm")],
throttleLever: [props.globals.getNode("/controls/engines/engine[0]/throttle-lever"), props.globals.getNode("fadec/throttle-lever[1]")],
throttleOutput: [props.globals.getNode("/controls/engines/engine[0]/throttle-output"), props.globals.getNode("/controls/engines/engine[1]/throttle-output")],
throttlePos: [props.globals.getNode("/controls/engines/engine[0]/throttle-pos"), props.globals.getNode("/controls/engines/engine[1]/throttle-pos")],
},
},
Flight: {

View file

@ -2578,8 +2578,8 @@
<default value="0"/>
<test logic="AND" value="1">
/engines/engine[0]/n2-actual ge 59.4
/controls/engines/engine[0]/throttle-pos ge 0.60
/controls/engines/engine[0]/throttle-pos lt 0.78
fadec/throttle-lever[0] ge 0.60
fadec/throttle-lever[0] lt 0.78
</test>
</switch>
@ -2593,8 +2593,8 @@
<default value="0"/>
<test logic="AND" value="1">
/engines/engine[0]/n2-actual ge 59.4
/controls/engines/engine[0]/throttle-pos ge 0.60
/controls/engines/engine[0]/throttle-pos lt 0.83
fadec/throttle-lever[0] ge 0.60
fadec/throttle-lever[0] lt 0.83
</test>
</switch>
@ -2608,8 +2608,8 @@
<default value="0"/>
<test logic="AND" value="1">
/engines/engine[1]/n2-actual ge 59.4
/controls/engines/engine[1]/throttle-pos ge 0.60
/controls/engines/engine[1]/throttle-pos lt 0.78
fadec/throttle-lever[1] ge 0.60
fadec/throttle-lever[1] lt 0.78
</test>
</switch>
@ -2623,8 +2623,8 @@
<default value="0"/>
<test logic="AND" value="1">
/engines/engine[1]/n2-actual ge 59.4
/controls/engines/engine[1]/throttle-pos ge 0.60
/controls/engines/engine[1]/throttle-pos lt 0.83
fadec/throttle-lever[1] ge 0.60
fadec/throttle-lever[1] lt 0.83
</test>
</switch>