From b91ebcbb545e0d489a3a558c62835c14a8be6cb1 Mon Sep 17 00:00:00 2001 From: sgilchrist123 Date: Thu, 17 Sep 2020 21:12:04 +1000 Subject: [PATCH] NOrmalise track_diff to avoid issues when turning through North --- Models/Instruments/PFD/PFD.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index b0ed7d4e..7e57fc3c 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -977,7 +977,7 @@ var canvas_PFD_base = { me["HDG_target"].hide(); } - track_diff = track.getValue() - heading.getValue(); + track_diff = geo.normdeg180(track.getValue() - heading.getValue()); me["TRK_pointer"].setTranslation(me.getTrackDiffPixels(track_diff),0); split_ils = split("/", ils_data1.getValue());