XML: VOR Radial Sign Rules: Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
No edit summary
 
(No difference)

Latest revision as of 02:46, 25 August 2014

(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.