Fix bug with magnetic_hdg_dif
This commit is contained in:
parent
f5ff581400
commit
a4d8c138b7
1 changed files with 1 additions and 3 deletions
|
@ -776,9 +776,7 @@ var canvas_PFD_base = {
|
|||
var r = runways[rwy];
|
||||
if (r.ils_frequency_mhz == split_ils[1]) {
|
||||
magnetic_hdg = r.heading - getprop("/environment/magnetic-variation-deg");
|
||||
magnetic_hdg_dif = magnetic_hdg - heading.getValue();
|
||||
print(magnetic_hdg_dif);
|
||||
|
||||
magnetic_hdg_dif = geo.normdeg180(magnetic_hdg - heading.getValue());
|
||||
if (magnetic_hdg_dif >= -23.62 and magnetic_hdg_dif <= 23.62) {
|
||||
me["CRS_pointer"].setTranslation((magnetic_hdg_dif / 10) * 98.5416, 0);
|
||||
me["ILS_HDG_R"].hide();
|
||||
|
|
Loading…
Reference in a new issue