XML: VOR Radial Sign Rules

From FSDeveloper Wiki
Revision as of 02:46, 25 August 2014 by Rpmc (talk | contribs) (Rpmc moved page VOR Radial Sign Rules to XML: VOR Radial Sign Rules)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

(A:NAV1 RADIAL, degrees) (FS9) and (A:NAV RADIAL:1, degrees) (FSX) can return negative values.

When this happens, add that value to 360 degrees to get the actual Radial:

(A:NAV2 RADIAL, degrees) 0 <
	 if{ 360 (A:NAV2 RADIAL, degrees) + (>L:VOR2 Radial, degrees) }
	 els{ (A:NAV2 RADIAL, degrees) (>L:VOR2 Radial, degrees) }

In this example, (L:VOR2 Radial, degrees) represents the correct radial.

Applies in FS9 and FSX, NAV1 and NAV2.