XML: RNOR Bug!

From FSDeveloper Wiki
Revision as of 09:42, 29 August 2011 by N4gix (talk | contribs) (New page: {{Infobox-Applicable-FSVersion | FSXI = false | FSXA = true | FSX = true | FS2004 = true | FS2002 = true | XP10 = false | XP9 = false }} == XML: RNOR Bug! == There is a bug in the rno...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


XML: RNOR Bug!

There is a bug in the rnor function that can be used in XML scripts (in both gauges and modeldef.xml).

The expression 4.0 rnor should be 4.0, not 0.86 as FS returns. The problem is that the parsing engine is doing a mod by pi instead of 2 pi.

What to do about this? I would suggest taking a number and converting to degress (using the rddg function), then using dnor (to normalize the number of degrees to a range between 0 and 360). and then convert back to radians using dgrd. Take care to mind your d's and r's and g's, though!