1
0
Fork 0

Fixing conversion to lbs

This commit is contained in:
hayden2000 2020-03-23 16:00:23 -04:00
parent 17bdcef974
commit 4c307b622a

View file

@ -1328,7 +1328,7 @@ var canvas_MCDU_base = {
me["Simple_R6S"].setText("NEXT "); me["Simple_R6S"].setText("NEXT ");
if (zfwSet.getValue() == 1 and blockSet.getValue() == 1) { if (zfwSet.getValue() == 1 and blockSet.getValue() == 1) {
lbs1000 = KG2LB * num(zfw.getValue() + block.getValue()); lbs1000 = num(zfw.getValue() + block.getValue());
tgt_f = ((0.4352 * lbs1000) + 51.006) * 1.47; tgt_f = ((0.4352 * lbs1000) + 51.006) * 1.47;
setprop("FMGC/internal/f-speed", tgt_f); setprop("FMGC/internal/f-speed", tgt_f);
@ -1463,7 +1463,7 @@ var canvas_MCDU_base = {
me["Simple_R6S"].setText("NEXT "); me["Simple_R6S"].setText("NEXT ");
if (zfwSet.getValue() == 1 and blockSet.getValue() == 1) { if (zfwSet.getValue() == 1 and blockSet.getValue() == 1) {
lbs1000 = KG2LB * num(zfw.getValue() + block.getValue()); lbs1000 = num(zfw.getValue() + block.getValue());
tgt_f = ((0.4352 * lbs1000) + 51.006) * 1.47; tgt_f = ((0.4352 * lbs1000) + 51.006) * 1.47;
setprop("FMGC/internal/f-speed", tgt_f); setprop("FMGC/internal/f-speed", tgt_f);
@ -1595,7 +1595,7 @@ var canvas_MCDU_base = {
me["Simple_R5S"].setText("ENG OUT ACC"); me["Simple_R5S"].setText("ENG OUT ACC");
if (zfwSet.getValue() == 1 and blockSet.getValue() == 1) { if (zfwSet.getValue() == 1 and blockSet.getValue() == 1) {
lbs1000 = KG2LB * num(zfw.getValue() + block.getValue()); lbs1000 = num(zfw.getValue() + block.getValue());
tgt_f = ((0.4352 * lbs1000) + 51.006) * 1.47; tgt_f = ((0.4352 * lbs1000) + 51.006) * 1.47;
setprop("FMGC/internal/f-speed", tgt_f); setprop("FMGC/internal/f-speed", tgt_f);