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
Left arrow in place of the CRS Bug if more than 30 degrees from the CRS heading to the left
Thanks for the help, I really am trying to learn this!
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!
