Jump to content
Sign in to follow this  
G.Franco

Converting by a switch the HSI compass indicator

Recommended Posts

Hi to all,

flying a B742 and using the INS instead the GPS I need to convert the NAV-GPS Switch to NAV-INS.

As in the realty on the B742 the NAV-INS switch changes the HSI compass headings from magnetic to True. That's to follow the INS Great circle navigation.

I made several attempts by the variable tokens:(Plane heading degrees gyro, radians) and the(Plane heading degrees true, radians) but unfortunately with no result.

I've only the magnetic headings or true ones depending on the order that I put the tokens in the gauge.

Any help will be very appreciated.

Thanks Gianfranco

Share this post


Link to post
Share on other sites

Hi,

 

very old code, but I use:

 

Switch:

(L:href,bool)

 

on the HSI:

%((L:href,bool))

%{if}

%(360 (A:PLANE HEADING DEGREES TRUE,degrees) dnor near d 0 == ?)%!03d!

%{else}

%(360 (A:PLANE HEADING DEGREES MAGNETIC,degrees) dnor near d 0 == ?)%!03d!

%{end}

Hope it helps,

Share this post


Link to post
Share on other sites

With your code The HSI compass is stuck indicating North instead of 146.To be sure of the code insertion in the HSI I'm asking if this code is the <Value> of the compass card <Element>.

if it is:

 

 <Element>

<Position  X="198 Y="232"/>

<Rotate>

<Value>%((L:href,bool)) %{if} %(360 (A:PLANE HEADING DEGREES TRUE,degrees) dnor near d 0 == ?)%!03d! %{else} %(360 (A:PLANE HEADING DEGREES MAGNETIC,degrees) dnor near d 0 == ?)%!03d! %{end}</Value>

</Rotate>

<Image Name="HSI_CARD.bmp" ImageSizes="236,236"  Bright="YES">

<Axis X="118",Y="118"/>

</Image>

</Element>

 

Thanks for the help:

Gianfranco

Share this post


Link to post
Share on other sites

The code i use is just a number in the HSI!

For the rotation try, not tested:

 

<Rotate>

<Value>

(L:href,bool)

if{ (A:PLANE HEADING DEGREES TRUE,degrees) }

els{ (A:PLANE HEADING DEGREES MAGNETIC,degrees) }

</Value>

</Rotate>

Share this post


Link to post
Share on other sites
<Value>%((L:href,bool)) %{if} %(360 (A:PLANE HEADING DEGREES TRUE,degrees) dnor near d 0 == ?)%!03d! %{else} %(360 (A:PLANE HEADING DEGREES MAGNETIC,degrees) dnor near d 0 == ?)%!03d! %{end}</Value> 

That is <Script> format for a <String> statement... You can't do that! Use the precise script Jan supplied.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Hi Jan,
thanks for your help.I solved the problem and the solution has been so stupid that I'm looking to me as a stupid men.
I used your second code for rotation because the first one, surly because I'm not able to insert it in the HSI,it doesn't work to me.
With your second code everything works properly but  a little correction must be made:You have to add /-/ after the Token Variables.

 <Rotate>
<Value>
(L:href,bool)
if{ (A:PLANE HEADING DEGREES TRUE,degrees) /-/ }
els{ (A:PLANE HEADING DEGREES MAGNETIC,degrees) /-/ }
</Value>
</Rotate>

 

Thanks again for your help
Gianfranco

Share this post


Link to post
Share on other sites

The [/] reverses the direction of rotation.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Thanks Bill. I have seen the solution in a your previous post I find during a search. Thank you again.

Gianfranco

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...