From 0e7c79d76dd0ba1c412bb4959502a0d6eba06b80 Mon Sep 17 00:00:00 2001 From: sgilchrist123 Date: Wed, 16 Sep 2020 22:35:44 +1000 Subject: [PATCH] Disable code that displays FPV in red if it is outside the range of negative to positive 9.9 degrees --- Models/Instruments/PFD/PFD.nas | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index ba7fa245..b0ed7d4e 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -1138,7 +1138,6 @@ var canvas_PFD_1 = { # FPV # If TRK FPA selected on the FCU, display FPV on PFD1 - # Display FPV in red and freeze if FPA outside the range of -9.9 degrees or 9.9 degrees if (ap_trk_sw.getValue() == 0 ) { me["FPV"].hide(); me.dimFixedAircraftOutline(0); @@ -1155,15 +1154,16 @@ var canvas_PFD_1 = { AICenter = me["AI_center"].getCenter(); var track_x_translation = me.getTrackDiffPixels(track_diff); - if (fpa_deg > 9.9) { - alpha_deg = alpha_deg + (fpa_deg - 9.9); - me["FPV"].setColor(1, 0, 0); - } else if (fpa_deg < -9.9) { - alpha_deg = alpha_deg + (fpa_deg + 9.9); - me["FPV"].setColor(1, 0, 0); - } else { - me["FPV"].setColor(0.066666667, 0.752941176, 0.294117647); - } + # Display FPV in red if FPA greater or less plus or minus 9.9 degrees + # if (fpa_deg > 9.9) { + # alpha_deg = alpha_deg + (fpa_deg - 9.9); + # me["FPV"].setColor(1, 0, 0); + # } else if (fpa_deg < -9.9) { + # alpha_deg = alpha_deg + (fpa_deg + 9.9); + # me["FPV"].setColor(1, 0, 0); + # } else { + # me["FPV"].setColor(0.066666667, 0.752941176, 0.294117647); + # } me.AI_fpv_trans.setTranslation(track_x_translation, math.clamp(alpha_deg, -20, 20) * 12.5); me.AI_fpv_rot.setRotation(-roll_deg * D2R, AICenter); @@ -1914,7 +1914,6 @@ var canvas_PFD_2 = { # FPV # If TRK FPA selected on the FCU, display FPV on PFD2 - # Display FPV in red and freeze if FPA outside the range of -9.9 degrees or 9.9 degrees if (ap_trk_sw.getValue() == 0 ) { me["FPV"].hide(); me.dimFixedAircraftOutline(0); @@ -1931,15 +1930,16 @@ var canvas_PFD_2 = { AICenter = me["AI_center"].getCenter(); var track_x_translation = me.getTrackDiffPixels(track_diff); - if (fpa_deg > 9.9) { - alpha_deg = alpha_deg + (fpa_deg - 9.9); - me["FPV"].setColor(1, 0, 0); - } else if (fpa_deg < -9.9) { - alpha_deg = alpha_deg + (fpa_deg + 9.9); - me["FPV"].setColor(1, 0, 0); - } else { - me["FPV"].setColor(0.066666667, 0.752941176, 0.294117647); - } + # Display FPV in red if FPA greater or less plus or minus 9.9 degrees + # if (fpa_deg > 9.9) { + # alpha_deg = alpha_deg + (fpa_deg - 9.9); + # me["FPV"].setColor(1, 0, 0); + # } else if (fpa_deg < -9.9) { + # alpha_deg = alpha_deg + (fpa_deg + 9.9); + # me["FPV"].setColor(1, 0, 0); + # } else { + # me["FPV"].setColor(0.066666667, 0.752941176, 0.294117647); + # } me.AI_fpv_trans.setTranslation(track_x_translation, math.clamp(alpha_deg, -20, 20) * 12.5); me.AI_fpv_rot.setRotation(-roll_deg * D2R, AICenter);