Jump to content
The simFlight Network Forums

Simulating Ground Power?


Recommended Posts

Hi Peter, I appreciate this is squeezing a square plug into a round hole but I was wondering if the "Battery Never Dies" check box in the FSUIPC dialogs has an accessible offset I can use? (I'm trying to simulate ground power).

The offset at x32F6 seems to offer some control over that checkbox but only in so far as it seems to disable the option itself. I'm really after a switch that toggles the battery behviour (normal or lasts forever).

My new overhead panel has a switch for ground power and at certain airports (logic tba) I want to light up the Ground Power Available annunciator. By flicking the switch when that light is on my battery will never die, effectively simulating external power. At other airports with no ground power I won't have this option so I'll be left with a normal battery life and an APU.

Not essential but it'd be a nice addition to my overhead if it's possible?

Have a good bank holiday,

All the best

Ian

Link to comment
Share on other sites

Hi Peter, I appreciate this is squeezing a square plug into a round hole but I was wondering if the "Battery Never Dies" check box in the FSUIPC dialogs has an accessible offset I can use? (I'm trying to simulate ground power).

You don't need to use the option via an offset, you just do what that option does, but directly -- that is, maintain the battery voltage forcibly. The offset for that is 2834, a double float value giving the voltage. Just watch that and when it drops write the full-charge value back. If you aren't writing a program to interface to FSUIPC, then you might find this easier to do using a Lua plug-in which tests the value of a switch/button and whilst it is set, loops reading/writing 2834. You'd need a "sleep" call in it for some milliseconds so you only do this at about frame rate.

The offset at x32F6 seems to offer some control over that checkbox but only in so far as it seems to disable the option itself.

That offset is one of those to stop users changing options during competitive flying.

Have a good bank holiday,

Thankser, Bank Holiday? Hmm. All the same to me .. that's one of the problems with working at home, such things make no difference!

Regards

Pete

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.