OKAY, this is driving me scatty. I've been customizing my own version of the Cessna 182RG and have created XML gauges for things such as the light switches, throttle/prop/mix etc. I've also built a new version of the GPS500 which I called GPS500DSX which includes extra functions such as a virtual radio stack, auto pilot, transponder and ground handling - controlled by adding 3 extra buttons and turning the rest into soft buttons.
I'm trying to make an XML ALT/BAT/AVIONICS master switch... The avionics bit works OK. I'm confused by the ALT/BAT bit ?
What do I need to test to see if each of the alt and bat switches are on or off ?
Additionally, I know that you can have ALT/BAT in the off/off, on/on, off/on, positions, but not on/off. However, on using blackbox2 to display various variables, I see that:
1 off/off: PARTIAL PANEL ELECTRICAL = 1, ELECTRICAL MASTER BATTERY = 0
2 on/on: PARTIAL PANEL ELECTRICAL = 0, ELECTRICAL MASTER BATTERY = 1
3 off/on: PARTIAL PANEL ELECTRICAL = 0, ELECTRICAL MASTER BATTERY = 1
From the above, I cannot distinguish between 2 and 3 - I need to do this for correctly displaying my bitmaps. There must be another variable that I am missing to test, but cannot find it.
Additionally, what K:vars do I need to used to set the three distinct states that the two switches can occupy ?
Even, has anyone successfuly coded the ALT/BAT switch in XML ? (a code snippet would be nice !)
One other thing - I would expect the engine to cut out if I turned off the ALT/BAT - this does not seem to happen, how can I force this behaviour ?
Please help, this is sending me dotty !
Dave.
I'm trying to make an XML ALT/BAT/AVIONICS master switch... The avionics bit works OK. I'm confused by the ALT/BAT bit ?
What do I need to test to see if each of the alt and bat switches are on or off ?
Additionally, I know that you can have ALT/BAT in the off/off, on/on, off/on, positions, but not on/off. However, on using blackbox2 to display various variables, I see that:
1 off/off: PARTIAL PANEL ELECTRICAL = 1, ELECTRICAL MASTER BATTERY = 0
2 on/on: PARTIAL PANEL ELECTRICAL = 0, ELECTRICAL MASTER BATTERY = 1
3 off/on: PARTIAL PANEL ELECTRICAL = 0, ELECTRICAL MASTER BATTERY = 1
From the above, I cannot distinguish between 2 and 3 - I need to do this for correctly displaying my bitmaps. There must be another variable that I am missing to test, but cannot find it.
Additionally, what K:vars do I need to used to set the three distinct states that the two switches can occupy ?
Even, has anyone successfuly coded the ALT/BAT switch in XML ? (a code snippet would be nice !)
One other thing - I would expect the engine to cut out if I turned off the ALT/BAT - this does not seem to happen, how can I force this behaviour ?
Please help, this is sending me dotty !
Dave.
Last edited:


