1
0
Fork 0

NOrmalise track_diff to avoid issues when turning through North

This commit is contained in:
sgilchrist123 2020-09-17 21:12:04 +10:00
parent 0e7c79d76d
commit b91ebcbb54

View file

@ -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());