XML: RNOR Bug!: Difference between revisions
From FSDeveloper Wiki
Jump to navigationJump to search
(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...) |
mNo edit summary |
||
| Line 16: | Line 16: | ||
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. | 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 | 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! | ||
[[Category:Aircraft Design]] | [[Category:Aircraft Design]] | ||
[[Category:Panel and Gauge Design]] | [[Category:Panel and Gauge Design]] | ||
Latest revision as of 09:52, 15 February 2013
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!