December 18, 20223 yr Trying to get the avionics master switch to work for the Black Square king air with my Alpha, using Spad.next . I can get the switch to move up and down by updating "VAR_AVIONICSMASTERSWITCH", but the avionics don't actually power on. Strangely, if I pull the avionics breaker, and push it back in, they come on. Is there some variable or event I'm missing here? Also, I'm trying to get my Saitek multi panel to power on when the battery and avionics switches are on. I have virtual power set up to turn on and off with "VAR_BATTERYMASTERSWITCH" and "VAR_AVIONICSMASTERSWITCH". The switches cause the virtual power icon in spad.next toswitch, but the panel doesn't turn on. Also. spad.next says "Aircraft Power: OFF". BUT, if I turn the mode dials, the displays do come on.
December 18, 20223 yr 4 hours ago, Dan Moos said: Trying to get the avionics master switch to work for the Black Square king air with my Alpha, using Spad.next . I can get the switch to move up and down by updating "VAR_AVIONICSMASTERSWITCH", but the avionics don't actually power on. Strangely, if I pull the avionics breaker, and push it back in, they come on. Is there some variable or event I'm missing here? I don't have this aircraft, but since there have been no responses to your post, perhaps a general comment will be of some limited help. Often with a switch, there is code that animates the movement of the switch, and there is code that "makes" (or breaks) the electrical connection e.g., connect electrical bus1 to electrical bus 2, etc. When you click on the switch with the mouse, both the animation and "connection" code is executed. From what you have said, it seems the AVIONICSMASTERSWITCH variable controls the animation of the switch, but you still need the code, event or variable that controls the electrical connection. For example, if you look up electrical events in the SDK you will find events like ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE and ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE, etc. So the challenge is to find what "connection" code (event) is being used in your particular avionics master switch case. One approach would be to search (with a text editor) some candidate files (perhaps a systems.xml file if that exists) where the code might be, for the AVIONICSMASTERSWITCH variable, and if you can locate that variable hopefully the "connection" code will be nearby and you will be able to determine what connection event is being used. You do need to be careful not to change any of the code, of course. Al Edited December 18, 20223 yr by ark
December 18, 20223 yr Author Thanks. I started to think maybe it worked that way after further contemplation. As it happens, I have an actual King 350 POH, which describes the bus layout precisely. Since the Black Square mod is supposedly electrically accurate, I'm hoping that means the proper bus variables stand out to me in the list.
January 31, 20233 yr Did you ever get this working? I'm starting my own build/conversion from X-Plane to 2020 using the Black Square mod. My sim/channel: Thanks for any info you can provide.... Ray S. Check out my aviation portfolio: http://scottshangar.net
Archived
This topic is now archived and is closed to further replies.