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

hsi SETTING

Messages
23
Country
italy
hELLO, just working on a special airplane, following the real manual prpcedures.
This panel has a selector to change the HSI source.
Any chanche to pilot hsi with nav2 instead nav1, I tried but not all elements are working properly, any idea?
thanks
 
Switch:

Code:
<Gauge Name="HSI_NAV_Source" Version="1.0">
   <Element>
      <Select>
         <Value>(L:HSI_NAV,bool)</Value>
         <Case Value="0">
            <Image Name="C310_Switch_Left.bmp"/>
         </Case>
         <Case Value="1">
            <Image Name="C310_Switch_Right.bmp"/>
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Tooltip>HSI NAV Source</Tooltip>
      <Cursor Type="Hand"/>
	   <Click>
		   (L:HSI_NAV,bool) ! (&gt;L:HSI_NAV,bool)
	   </Click>
   </Mouse>
</Gauge>

Within the HSI script, you simply choose the source variable based on the switch position, something like this:

Code:
<Value>
	(L:HSI_NAV,bool) !
	if{ (A:NAV1 OBS,radians) (A:Plane heading degrees gyro,radians) - }
	els{ (A:NAV2 OBS,radians) (A:Plane heading degrees gyro,radians) -}
</Value>

and

Code:
<Value>
	(L:HSI_NAV,bool) !
	if{ (A:HSI TF flags, ENUM) }
	els{ (A:NAV2 TOFROM,enum) }
</Value>

et cetera...
 
Code

Thanks, u r very kind giving me the code. i found it very useful.
Just another thing, I can't drive the hsi cdi code, what is the nav2 version?

Nav2 cdi ? i searched the sdk, but can't fin the right code .
Thanks again I'll send you screenshot s when done.

Regards
 
It's pretty much the same parameter with an index value :2 added to it:

Code:
<Value>
	(L:HSI_NAV,bool) !
	if{ (A:HSI CDI needle valid, bool) if{ (A:HSI CDI needle, number)  } els{ 0 } }
	els{ (A:NAV2 HAS NAV,bool) if{ (A:NAV CDI:2, Number)  } els{ 0 } }
</Value>

Note that
A:HSI CDI needle, number
is pretty much the same thing as
A:NAV CDI:1, Number
 
hsi

Thansk now is working well, but only one thing is strange, the glide slop bug appears in themiddle of his position when off.
think this is wrong? with nav1 remains out of view.
<Value Minimum="-220" Maximum="120">(A:NAV2 HAS NAV,bool) if{ (A:NAV GSI:2, Number) } els{ -220 }</Value>

maybe the right is this (A:NAV HAS GLIDE SLOPE:2, bool) correct?
Thamks

Now I have a fully working nav2 hsi, but the code seems ignoring the if els codes, making weird things.... I'm puzzled.....
 
Last edited:
You have the wrong A:variable for the glideslope. Note also that the minimum value is normally -120 (to match the maximum value), but I've used -220 so that I can "park the needle" behind the bezel (hidden) whenever there's no glideslope signal!

Code:
<Value Minimum="-220" Maximum="120">
              (L:HSI_NAV,bool) !
              if{ (A:HSI GSI needle valid, bool) if{ (A:HSI GSI needle, number) } els{ -220 } }
              els{ (A:NAV GS FLAG:2, bool) if{ (A:NAV GSI:2, Number) } els{ -220 } }
</Value>
 
I can't see your screenshot without logging into Flicker/Yahoo, and I don't feel like setting up an account just for that purpose... ;)

Here is what I use for the CRS display string:
Code:
<Element Name="CRS Box Nav Display">
	<Visible>(A:GPS drives nav1,bool) 0 ==</Visible>
	<Position X="455" Y="526"/>
	<FormattedText X="100" Y="28" Font="Arial Bold" FontSize="18" Adjust="Left" VerticalAdjust="Center" Color="White" Background="Black" Bright="Yes">
	<Font FontSize="24"/>
	<Color Value="#06FF00"/>
		<String>CRS  \{fnt1}\{clr2}
			%((A:NAV1 OBS,degrees) near 0 !=)
			%{if}%((A:NAV1 OBS,degrees) near)
			%!03d!\{dplo= }
			%{else}360\{dplo= }
			%{end}
		</String>
	</FormattedText>
</Element>
 
Thanks

That is the panel of the sf260EA Used by Italian Air Force.

We ave one hsi on each side and 2 buttons in the middle (over the ELT switch)
The first button selects between nav1 and2, the lover one selects the pointing bug to nav2 or adf (like rmi), but if the first one is on 2 u can't switch the other on nav2.
All is working Now very well, still little troubles with conditions inside string commands.

the panel is fully wide, and u can move and resize as you prefer up, down, left or right. All' made usino real manual.

If you like i'll send you a full SS.
Thanks regards
 
Last edited:
this string is working, but

this string is working, but result numbers are wrong
%((A:condition,bool))%{if}%((A:NAV1 OBS,degrees) dnor )%!03d!%{else}%((A:NAV2 OBS,degrees) dnor )%!03d!%{end}

if I use same string with no condition numbers are ok, but with condition working numbera are shifted, can't figure what I've missed.
 
What do you mean "shifted?" Left one space? Right one space?

I don't see anything wrong with the syntax at all...
 
Values Are wrong, reading 240 instead of 260 and so on.
If I put the same with no condition nav 1 or 2 works very well, but when Are both in the code crs is not correct.
 
Now that is indeed very strange.

Try scripting two <String> displays then, one for each NAV radio, and control them with <Visible> conditions.
 
Beautiful! This is a 2d panel you said? It's very well done, and the perspective is rather convincing.
 
I took a lot of pics from the Seat, then I assembled them with PS.
I made the full panel to work better, but I will use an instruments only version to be projected into a panel from the engine van of the real plane. I'll try to send u sample pix in the NeXT few days.
 
I took a lot of pics from the Seat, then I assembled them with PS.
I made the full panel to work better, but I will use an instruments only version to be projected into a panel from the engine van of the real plane. I'll try to send u sample pix in the NeXT few days.

Thanks and best regards
 
Back
Top