RMP: remove fuel stuff
This commit is contained in:
parent
7f94ef01d9
commit
4abad35c11
1 changed files with 1 additions and 34 deletions
|
@ -1,26 +1,17 @@
|
||||||
# A320 Refeul panel
|
# A320 RM panel
|
||||||
# merspieler
|
# merspieler
|
||||||
|
|
||||||
# Copyright (c) 2019 merspieler
|
# Copyright (c) 2019 merspieler
|
||||||
|
|
||||||
# Distribute under the terms of GPLv2.
|
# Distribute under the terms of GPLv2.
|
||||||
|
|
||||||
# Get nodes
|
|
||||||
|
|
||||||
var rmpClass = {
|
var rmpClass = {
|
||||||
_fuelLeftAmount: nil,
|
|
||||||
_fuelCenterAmount: nil,
|
|
||||||
_fuelRightAmount: nil,
|
|
||||||
_fuelTotalAmount: nil,
|
|
||||||
_fuelPreselectAmount: nil,
|
|
||||||
new: func(instance) {
|
new: func(instance) {
|
||||||
var m = {parents:[rmpClass]};
|
var m = {parents:[rmpClass]};
|
||||||
m._title = "RMP " ~ instance;
|
m._title = "RMP " ~ instance;
|
||||||
m._gfd = nil;
|
m._gfd = nil;
|
||||||
m._canvas = nil;
|
m._canvas = nil;
|
||||||
m._timer = maketimer(0.1, m, rmpClass._timerf);
|
m._timer = maketimer(0.1, m, rmpClass._timerf);
|
||||||
m._timerUp = maketimer(0.1, m, rmpClass._fuelAdjustUp);
|
|
||||||
m._timerDn = maketimer(0.1, m, rmpClass._fuelAdjustDn);
|
|
||||||
m._instance = instance;
|
m._instance = instance;
|
||||||
|
|
||||||
# Get nodes for this rmp
|
# Get nodes for this rmp
|
||||||
|
@ -234,30 +225,6 @@ var rmpClass = {
|
||||||
me._BFO_ind.setColorFill(0.125, 0.125, 0.125);
|
me._BFO_ind.setColorFill(0.125, 0.125, 0.125);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_fuelAdjustDn: func() {
|
|
||||||
target = amount.getValue();
|
|
||||||
if (target > 0) {
|
|
||||||
amount.setValue(target - 0.1);
|
|
||||||
if (target - 0.1 >= 10.0) {
|
|
||||||
me._FQI_pre.setText(sprintf("%2.1f", target - 0.1));
|
|
||||||
} else {
|
|
||||||
me._FQI_pre.setText(sprintf("%2.2f", target - 0.1));
|
|
||||||
}
|
|
||||||
systems.fuelSvc.Nodes.requestLbs.setValue(((target - 0.1) - math.round(pts.Consumables.Fuel.totalFuelLbs.getValue() / 1000, 0.1)) * 1000);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
_fuelAdjustUp: func() {
|
|
||||||
target = amount.getValue();
|
|
||||||
if (target < max_fuel) {
|
|
||||||
amount.setValue(target + 0.1);
|
|
||||||
if (target + 0.1 >= 10.0) {
|
|
||||||
me._FQI_pre.setText(sprintf("%2.1f", target + 0.1));
|
|
||||||
} else {
|
|
||||||
me._FQI_pre.setText(sprintf("%2.2f", target + 0.1));
|
|
||||||
}
|
|
||||||
systems.fuelSvc.Nodes.requestLbs.setValue(((target + 0.1) - math.round(pts.Consumables.Fuel.totalFuelLbs.getValue() / 1000, 0.1)) * 1000);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
_onClose: func() {
|
_onClose: func() {
|
||||||
me.close();
|
me.close();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue