• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX CRS Bug on Linear Compass Card

Messages
19
Country
us-texas
Ok, I am using XML and I am doing the code for FSX.

My delima is with the code that I have right now, if you are not within 30 degrees of the course, then the CRS Bug is all the way to the left until you center your heading on the course displayed. Then, if you turn past 360 on the opposite side (right) the CRS pegs out on the left again.

How do I write the code so that if you need to turn right to get to the course, then the CRS bug will be on the right of the compass card, and if the course is left, the CRS Bug will be on the left side of the compass card respectfully.

Then, after all that is complete how would I show another image in place of the CRS bug if it is greater than 30 degrees to the left or right. For example, if you needed to turn left, there would be an arrow pointing to the left or visa versa!

Here is what I would think, please let me know where I am going wrong.

CRS BUG
Code:
<script>
(A:HSI BEARING,degrees) dnor
(A:PARTIAL PANEL HEADING,bool) (A:PARTIAL PANEL ELECTRICAL,bool) or 0 ==
if{ (A:Plane heading degrees gyro,degrees) - }
</script>

Left arrow in place of the CRS Bug if more than 30 degrees from the CRS heading to the left
Code:
<Visibility>
(A:HSI BEARING,degrees)(A:Plane heading degrees gyro,degrees) <= -30
 if{1}
els{0}
</Visibility>

Thanks for the help, I really am trying to learn this!
 
Back
Top