XML: RNOR Bug!

From FSDeveloper Wiki
Revision as of 10:52, 15 February 2013 by N4gix (talk | contribs)
(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 degrees (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!