Remove feature to dim fixed aircraft outline on PFD in TRK mode
This commit is contained in:
parent
cfea513ace
commit
c3f88010d6
1 changed files with 0 additions and 24 deletions
|
@ -1027,24 +1027,6 @@ var canvas_PFD_base = {
|
||||||
me["AI_heading"].update();
|
me["AI_heading"].update();
|
||||||
},
|
},
|
||||||
|
|
||||||
# Dim the yellow outline of fixed aircraft symbol on PFDs (when crew select TRK-FPA)
|
|
||||||
# 1 == dim
|
|
||||||
# 0 == undim
|
|
||||||
dimFixedAircraftOutline: func(dim_bool) {
|
|
||||||
var r = 0.345098039;
|
|
||||||
var g = 0.349019608;
|
|
||||||
var b = 0.058823529;
|
|
||||||
|
|
||||||
if (dim_bool == 0) {
|
|
||||||
r = 0.788235294;
|
|
||||||
g = 0.819607843;
|
|
||||||
b = 0.129411765;
|
|
||||||
}
|
|
||||||
|
|
||||||
me["fixed_aircraft_outline_1"].setColor(r, g, b);
|
|
||||||
me["fixed_aircraft_outline_2"].setColor(r, g, b);
|
|
||||||
},
|
|
||||||
|
|
||||||
# Get Angle of Attack from ADR1 or, depending on Switching panel, ADR3
|
# Get Angle of Attack from ADR1 or, depending on Switching panel, ADR3
|
||||||
getAOAForPFD1: func() {
|
getAOAForPFD1: func() {
|
||||||
if (air_data_switch.getValue() != -1 and adr_1_switch.getValue() and !adr_1_fault.getValue()) return aoa_1.getValue();
|
if (air_data_switch.getValue() != -1 and adr_1_switch.getValue() and !adr_1_fault.getValue()) return aoa_1.getValue();
|
||||||
|
@ -1138,12 +1120,10 @@ var canvas_PFD_1 = {
|
||||||
# If TRK FPA selected, display FPV on PFD1
|
# If TRK FPA selected, display FPV on PFD1
|
||||||
if (ap_trk_sw.getValue() == 0 ) {
|
if (ap_trk_sw.getValue() == 0 ) {
|
||||||
me["FPV"].hide();
|
me["FPV"].hide();
|
||||||
me.dimFixedAircraftOutline(0);
|
|
||||||
} else {
|
} else {
|
||||||
var aoa = me.getAOAForPFD1();
|
var aoa = me.getAOAForPFD1();
|
||||||
if (aoa == nil or (systems.ADIRS.ADIRunits[0].aligned != 1 and att_switch.getValue() == 0) or (systems.ADIRS.ADIRunits[2].aligned != 1 and att_switch.getValue() == -1)){
|
if (aoa == nil or (systems.ADIRS.ADIRunits[0].aligned != 1 and att_switch.getValue() == 0) or (systems.ADIRS.ADIRunits[2].aligned != 1 and att_switch.getValue() == -1)){
|
||||||
me["FPV"].hide();
|
me["FPV"].hide();
|
||||||
me.dimFixedAircraftOutline(0);
|
|
||||||
} else {
|
} else {
|
||||||
var roll_deg = roll.getValue() or 0;
|
var roll_deg = roll.getValue() or 0;
|
||||||
AICenter = me["AI_center"].getCenter();
|
AICenter = me["AI_center"].getCenter();
|
||||||
|
@ -1153,7 +1133,6 @@ var canvas_PFD_1 = {
|
||||||
me.AI_fpv_rot.setRotation(-roll_deg * D2R, AICenter);
|
me.AI_fpv_rot.setRotation(-roll_deg * D2R, AICenter);
|
||||||
me["FPV"].setRotation(roll_deg * D2R); # It shouldn't be rotated, only the axis should be
|
me["FPV"].setRotation(roll_deg * D2R); # It shouldn't be rotated, only the axis should be
|
||||||
me["FPV"].show();
|
me["FPV"].show();
|
||||||
me.dimFixedAircraftOutline(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1899,12 +1878,10 @@ var canvas_PFD_2 = {
|
||||||
# If TRK FPA selected, display FPV on PFD2
|
# If TRK FPA selected, display FPV on PFD2
|
||||||
if (ap_trk_sw.getValue() == 0 ) {
|
if (ap_trk_sw.getValue() == 0 ) {
|
||||||
me["FPV"].hide();
|
me["FPV"].hide();
|
||||||
me.dimFixedAircraftOutline(0);
|
|
||||||
} else {
|
} else {
|
||||||
var aoa = me.getAOAForPFD2();
|
var aoa = me.getAOAForPFD2();
|
||||||
if (aoa == nil or (systems.ADIRS.ADIRunits[1].aligned != 1 and att_switch.getValue() == 0) or (systems.ADIRS.ADIRunits[2].aligned != 1 and att_switch.getValue() == 1)) {
|
if (aoa == nil or (systems.ADIRS.ADIRunits[1].aligned != 1 and att_switch.getValue() == 0) or (systems.ADIRS.ADIRunits[2].aligned != 1 and att_switch.getValue() == 1)) {
|
||||||
me["FPV"].hide();
|
me["FPV"].hide();
|
||||||
me.dimFixedAircraftOutline(0);
|
|
||||||
} else {
|
} else {
|
||||||
var roll_deg = roll.getValue() or 0;
|
var roll_deg = roll.getValue() or 0;
|
||||||
AICenter = me["AI_center"].getCenter();
|
AICenter = me["AI_center"].getCenter();
|
||||||
|
@ -1914,7 +1891,6 @@ var canvas_PFD_2 = {
|
||||||
me.AI_fpv_rot.setRotation(-roll_deg * D2R, AICenter);
|
me.AI_fpv_rot.setRotation(-roll_deg * D2R, AICenter);
|
||||||
me["FPV"].setRotation(roll_deg * D2R); # It shouldn't be rotated, only the axis should be
|
me["FPV"].setRotation(roll_deg * D2R); # It shouldn't be rotated, only the axis should be
|
||||||
me["FPV"].show();
|
me["FPV"].show();
|
||||||
me.dimFixedAircraftOutline(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue