• 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.

FSXA Hdg bug

Messages
26
Country
unitedkingdom
Hi Guys,

Just making an Apache HUD at the moment and trying to get a heading bug to work on the heading tape. I get one to appear, but I cant get it to change heading when you pres ALT+SHIFT+H and the -/+ to increase or decrease. Any idea what the sim var is for it??

Cheers

Rich
 
keyboard....
CTRL + H = Heading Hold
------------------------------
The other 2 for + and - are not assigned. You need to create a keyboard assignment.
------------------------------
ID events.....
HEADING_BUG_INC
HEADING_BUG_DEC
HEADING_BUG_SET
------------------------------
Variables....
AUTOPILOT HEADING LOCK ..............Heading mode active Bool N Shared Cockpit
AUTOPILOT HEADING LOCK DIR ................Selected heading Degrees N Shared Cockpit
 
Hi,

I have got the ID's working but still cant get the heading bug to move. This is what I have so far!

Cheers

Rich

<Element>
<Position X="0" Y="50"></Position>
<MaskImage Name="HUD_Compass_mask.bmp">
<Axis X="512" Y="0"></Axis>
</MaskImage>
<Position X="0" Y="50"></Position>
<Image Name="HDG_BUG.bmp">
<Nonlinearity>
<Item Value="0" X="138" Y="0"/>
<Item Value="360" X="875" Y="0"/>
</Nonlinearity>
</Image>
<Shift>
<Value>(A:AUTOPILOT HEADING LOCK DIR, degrees) (A:PLANE HEADING DEGREES GYRO, degrees) </Value>
</Shift>
</Element>
 
<Value>(A:AUTOPILOT HEADING LOCK DIR, degrees) (A:PLANE HEADING DEGREES GYRO, degrees) </Value>

Don't you mean;

<Value>(A:AUTOPILOT HEADING LOCK DIR, degrees) (A:PLANE HEADING DEGREES GYRO, degrees) - </Value>
 
Hi Chris,

Tried that and the heading bug dissapears! Just to clairfy im trying to re-create a HSI heading bug but it slides sideways along a compass tape. I can see the the bug thats in the code, just cant move it.

BR

Rich
 
HEADING BUG TUTORIAL

Here is a quick tutorial i made. Download the zip file to test.
http://www.flysim.us/help/HDG_BUG_TUTORIAL.zip

Photo length = 1000....keep it simple for division
You must have the start look like the end....so 2 Norths(The alignment of the ends will affect the smooth transition)
Instead of making the photo longer and making it more complicated,
we will offset.
-----------------------------------------------------------------
ROTATE......LOCATION TO START/FINISH.............HEIGHT OFFSET

0..........................X = 50.................................Y = 0
360.......................X = 850................................Y = 0
-----------------------------------------------------------------

I CREATED A PANEL WINDOW THAT WAS 200 WIDE BY 100 HIGH.
THE REASON OUR OFFSET IS NOT 100-900 AND IS 50-850(LIKE IN PIC)
(THEY BOTH DO ADD UP TO 800) IS BECAUSE OUR PANEL IS 200 WIDE, WHICH
IS 100 CENTER. SO 50+850+100=1000 UNLIKE 100+900+100=1100

HEADING_SAMPLE_LAYOUT.png


SHOULD SOLVE YOUR ISSUE RIGHT AWAY!

Don't you mean;

<Value>(A:AUTOPILOT HEADING LOCK DIR, degrees) (A:PLANE HEADING DEGREES GYRO, degrees) - </Value>

That seemed to make sense to just reverse it.....but it does run the correct direction. He just had the formula way off.

Sincerely DG:eek::wizard:
 
Last edited:
Back
Top