Jump to content
The simFlight Network Forums

Avionics Master Offset for 1 & 2 (like 2E80)


pilotjohn

Recommended Posts

I've been using 2E80 to test and toggle my avionics using AVIONICS MASTER SET (which is the only way it would work consistently).

I'd like to switch to having separate toggles for the 2 buses, but I don't see individual offsets for the state. Is this available?

Link to comment
Share on other sites

This will almost certainly depend on the aircraft that you are using, i.e. will be different for each aircraft (use profiles). Try searching for a preset for separate avionics on https://hubhop.mobiflight.com/presets/ for the aircraft you are using, and you can then assign to these by checking the Select for preset checkbox. If you look at the code for the preset, this should indicate the lvar which holds the individual avionics states, and you can add these lvars to an FSUIPC offset if you want to read the state.

John

Link to comment
Share on other sites

53 minutes ago, John Dowson said:

This will almost certainly depend on the aircraft that you are using, i.e. will be different for each aircraft (use profiles). Try searching for a preset for separate avionics on https://hubhop.mobiflight.com/presets/ for the aircraft you are using, and you can then assign to these by checking the Select for preset checkbox. If you look at the code for the preset, this should indicate the lvar which holds the individual avionics states, and you can add these lvars to an FSUIPC offset if you want to read the state.

John

Thanks, odd that these don't seem to be available even though you can independently set them (e.g. the 172).

 

Link to comment
Share on other sites

3 minutes ago, pilotjohn said:

odd that these don't seem to be available even though you can independently set them (e.g. the 172).

Well, it can be made available, by looking at the value of 3 simvars: CIRCUIT SWITCH ON, BUS LOOKUP INDEX and BUS CONNECTION ON.
If needed, you can add them to free offsets, and use a lua script to update a fourth/fifth offset with the actual avionics master 1/2 state when any of those change.

John

Link to comment
Share on other sites

1 hour ago, John Dowson said:

Well, it can be made available, by looking at the value of 3 simvars: CIRCUIT SWITCH ON, BUS LOOKUP INDEX and BUS CONNECTION ON.
If needed, you can add them to free offsets, and use a lua script to update a fourth/fifth offset with the actual avionics master 1/2 state when any of those change.

John

Thanks, I'll take a look at those.

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.