From b5d6a5b8ed784c11984d505babccfee22b16dbbd Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 2 Sep 2023 20:12:57 +0100 Subject: [PATCH] FG1000: Fix ADF Thanks to Dany and Wayne for debugging and testing. --- .../MFDPages/PFDInstruments/PFDInstrumentsController.nas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Aircraft/Instruments-3d/FG1000/Nasal/MFDPages/PFDInstruments/PFDInstrumentsController.nas b/Aircraft/Instruments-3d/FG1000/Nasal/MFDPages/PFDInstruments/PFDInstrumentsController.nas index 982054750..53efd58e5 100644 --- a/Aircraft/Instruments-3d/FG1000/Nasal/MFDPages/PFDInstruments/PFDInstrumentsController.nas +++ b/Aircraft/Instruments-3d/FG1000/Nasal/MFDPages/PFDInstruments/PFDInstrumentsController.nas @@ -400,7 +400,7 @@ var PFDInstrumentsController = if (data["ADFSelectedFreq"] != nil) me._adf_freq = data["ADFSelectedFreq"]; if (data["ADFInRange"] != nil) me._adf_in_range = data["ADFInRange"]; - if (data["ADFHeadingDeg"] !=nil) me._adf_heading_deg = data["ADFInRange"]; + if (data["ADFHeadingDeg"] !=nil) me._adf_heading_deg = data["ADFHeadingDeg"]; if (data["TransponderMode"] != nil) me._transponder_mode = data["TransponderMode"]; if (data["TransponderCode"] != nil) me._transponder_code = data["TransponderCode"]; @@ -413,11 +413,11 @@ var PFDInstrumentsController = if (me.getBRG1() == "NAV1") me.page.updateBRG1(me._nav1_in_range, me._nav1_id, me._nav1_distance_m * M2NM, me._heading_magnetic_deg, me._nav1_heading_deg); if (me.getBRG1() == "NAV2") me.page.updateBRG1(me._nav2_in_range, me._nav2_id, me._nav2_distance_m * M2NM, me._heading_magnetic_deg, me._nav2_heading_deg); - if (me.getBRG1() == "ADF") me.page.updateBRG1(me._adf_in_range, sprintf("%.1f", me._adf_freq), 0, me._heading_magnetic_deg, me._adf_heading_deg); + if (me.getBRG1() == "ADF") me.page.updateBRG1(me._adf_in_range, sprintf("%.1f", me._adf_freq), 0, 0, me._adf_heading_deg); if (me.getBRG2() == "NAV1") me.page.updateBRG2(me._nav1_in_range, me._nav1_id, me._nav1_distance_m * M2NM, me._heading_magnetic_deg, me._nav1_heading_deg); if (me.getBRG2() == "NAV2") me.page.updateBRG2(me._nav2_in_range, me._nav2_id, me._nav2_distance_m * M2NM, me._heading_magnetic_deg, me._nav2_heading_deg); - if (me.getBRG2() == "ADF") me.page.updateBRG2(me._adf_in_range, sprintf("%.1f", me._adf_freq), 0, me._heading_magnetic_deg, me._adf_heading_deg); + if (me.getBRG2() == "ADF") me.page.updateBRG2(me._adf_in_range, sprintf("%.1f", me._adf_freq), 0, 0, me._adf_heading_deg); if (me.getCDISource() == "NAV1") { me.page.updateCRS(me._nav1_radial_deg);