Jump to content
The simFlight Network Forums

Set baro pressure on G1000


Djeez

Recommended Posts

Hi,

I can increase/decrease the barometric pressure in my Lua scripts by using controls 65883 and 65884 with parameter 1. However, in aircraft with a G1000, this control requires a parameter value 5. Is there a generic way to use these controls?

If not, I can use either 1 or 5 as parameter but then I need to know if a G1000 is present in the plane. Is there a way to find that out?

Thanks,

-Emile.

Link to comment
Share on other sites

2 hours ago, Djeez said:

Is there a generic way to use these controls?

No, not that I'm aware of.

2 hours ago, Djeez said:

If not, I can use either 1 or 5 as parameter but then I need to know if a G1000 is present in the plane. Is there a way to find that out?

Maybe, but not that I know of., sorry.

If its just the case of using a different parameter for different aircraft, you could either use profiles, or you could maybe set the parameter to the correct value in your lua based upon something you know (or have access to), such as the aircraft name/title. 

Link to comment
Share on other sites

42 minutes ago, John Dowson said:

No, not that I'm aware of.

Maybe, but not that I know of., sorry.

Thanks for thinking with me. My work-around is to call the control twice, once with parameter 1 and once with parameter 5. This looks weird but it does not seem to have any negative effect.
 

Emile.

  • Like 1
Link to comment
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
×
×
  • 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.