Jump to content
The simFlight Network Forums

Toggle Switches (Master / Fuel Pump)


Recommended Posts

Hey Pete,

I'm having trouble getting the Master Battery switch and the Fuel Boost Pump switch working properly.

With the Landing Gear, landing lights, etc. I noticed there is a setting such as "Landing Gear Up" "Landing Gear Down", but for boost pumps it says, "Toggle Boost Pumps" and similar for the master battery alternator toggle.

In the button pressed parameter I put 1, and in the button released parameter I put a 0. I also tried them the other way around, but for some reason, the switch reacts backwards depending on where the switch was positioned on sim startup. What is the correct way for me to setup the switch, so like the landing gear, pressed is always on and released is always off for the fuel pumps and master battery alternator.

Thanks much!

Robert Prather

Link to comment
Share on other sites

In the button pressed parameter I put 1, and in the button released parameter I put a 0.

Very few FS controls use the parameter -- mainly only the "SET" controls, including all the Axis ones assignable in the Axes tab. The "Toggle" controls simply do as they say, toggle the value -- turn it off if it is on, or on if is off. They are really designed for buttons (as on a joystick) rather than latching switches.

I also tried them the other way around, but for some reason, the switch reacts backwards depending on where the switch was positioned on sim startup.

When using toggle switches instead of buttons with toggle controls the only way really is to ensure all of your switches are set correctly when you close down FS or before you start up again. Alternatively you can "synchronize" them using the mouse on screen to start with. Personally I prefer always to close down the sim in a "cold and dark" state, with everything off, and start up with the default flight also with everything off.

There is an alternative method, and that is to use the FSUIPC offsets to switch these things on and off, and assign the switches to "Offset" controls appropriate to the variable or bit being changed. You'd need to download the FSUIPC SDK in order to get the full list of offsets, and work it out from those.

In your examples, for instance:

Fuel pumps:: offset 3104, 1 byte, 1=on, 0=off, so

Assign "press" to "Offset byte set" with offset x3104 and parameter 1

Assign "release" to "Offset byte set" with offset x3104 and parameter 0

Master Battery switch is similar but offset x3102.

Alternator switch is similar but offset x3101.

Those are easy ones. Some (like lights) are by single bits in an offset, in which case you'd work out the bit value and use "Offset word setbits" and "Offset word clearbits", et cetera.

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.