- Messages
- 371
- Country

Hi,
I have a problem to make a heading bug on a shifted horizontale compass
The compass strip move horizontally with the heading of the aircraft.
I would like to add a pointer, that is the autopilot heading value
I am stupid or tired but that doesnt work. The problem is when the heading of the aircraft reach the 0/360 value, my pointer leave this place;
here is my actual code :
I think that I must add or substract 360 or invert the sign in the area near heading 0 of the aircraft, but I become crazy with degrees.
I was the lastest of my classroom in mathematic
I hate degrees and circle !
good:
bad
good
bad
I have a problem to make a heading bug on a shifted horizontale compass
The compass strip move horizontally with the heading of the aircraft.
I would like to add a pointer, that is the autopilot heading value
I am stupid or tired but that doesnt work. The problem is when the heading of the aircraft reach the 0/360 value, my pointer leave this place;
here is my actual code :
Code:
<Element id="COMPASS HDG pointer">
<FloatPosition>213.000,374.000</FloatPosition>
<Image id="pfd_compass_bug.bmp" Name="pfd_compass_bug.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
</Image>
<Shift id="Shift">
<Scale>-4.00,0.000</Scale>
<Expression id="Expression">
<Minimum>-25.000</Minimum>
<Maximum>25.000</Maximum>
<Script>
(A:Plane heading degrees gyro,degrees) (A:Autopilot heading Lock Dir,degrees) -
</Script>
</Expression>
</Shift>
</Element>
I think that I must add or substract 360 or invert the sign in the area near heading 0 of the aircraft, but I become crazy with degrees.
I was the lastest of my classroom in mathematic
I hate degrees and circle !
good:
bad
good
bad
Last edited:
