Jump to content
The simFlight Network Forums

Can't set Baro to "STD" on MSFS 2020 ASOBO's A320


Recommended Posts

Hi !!

I'm new to FSUIPC , and trying to control / read FS with its help,  I've done a lot of searching in the web but cannot find a way to make this work,

                       FSUIPCConnection.SendControlToFS(FsControl.BAROMETRIC_STD_PRESSURE, 0);

                       FSUIPCConnection.Process();

sets the Baro to 29.92 , actually this is STD, but cannot make the plane show STD in the Baro indicator. Tryied with other values with no luck.

 I saw an Axis and Ohs template that accomplish this making use of an RPN script (Simconnect):

(L:XMLVAR_Baro1_ForcedToSTD,·Number)·!·(>L:XMLVAR_Baro1_ForcedToSTD,·Number)·(L:XMLVAR_Baro1_ForcedToSTD,·Number)·0·==·if{·(A:KOHLSMAN·SETTING·MB:1,·mbars)·16·*·(>L:XMLVAR_Baro1_SavedPressure)·1·(>K:BAROMETRIC_STD_PRESSURE)·3·(>L:XMLVAR_Baro1_Mode,·Number)·}·els{·(L:XMLVAR_Baro1_SavedPressure)·(>K:KOHLSMAN_SET)·1·(>L:XMLVAR_Baro1_Mode,·Number)·}

So it CAN be done.

 

Any help about how to make it with FSUIPC??

 

Thanks!!

 

Link to comment
Share on other sites

The problem is probably with MSFS or the way the A320 is programmed. Even though you have set standard pressure, the code in the aircraft doesn't light the indicator.

The RPN script seems to be using local panel variables (LVARs) to force the indicator on.

I can't understand the syntax of the script but it seems like L:XMLVAR_Baro1_ForcedToSTD is being used to light the indicator.

Unfortunately LVARs are not yet available in FSUIPC when using MSFS (both are still in development). When they are implemented you will likely be able to light the indicator by writing the correct value to the LVARs. Use FSUIPCConnection.ReadLVAR() and FSUIPCConnection.WriteLVAR().

Paul

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.