Results 1 to 7 of 7
-
07-27-2011, 06:44 PM #1
Triggering and Electrical Failure in FSX
If I understand the offset info I've found an electrical failure is 0B6A. However I can't seem to find anything that confirms if it's a writable variable. I have a circuit built in FS2P using an FS Out and a valve to pick up Main Bus Amperage and indicate when it exceeds x amps. I want it to trip a simulated breaker (like those from Simkits) and kill the electrical system when I exceed the specified amperage.
It was easy to setup the FS Out variable and valve to trigger when the amperage went above x. However I can't figure out how to use an FS Input to tell FSX to fail the electrical. I attempted to create my own variable using offset 0B6a. No luck... Either it's not a writable variable or I have the settings wrong.
My other thought was to program it to a keyboard key (I chose "J" for testing purposes) and try to send that value to FSX. What made me think of that was that one of the pre-defined variables that came in FS2P is called "Keysend". But I can't find any documentation on how that variable works. Can it actually send a keyboard character, like "J", to FSX???
Any ideas out there???
-
08-01-2011, 01:04 PM #2
Re: Triggering and Electrical Failure in FSX
Bump...
Thoughts anyone?
Thanks!
-
08-27-2011, 12:49 PM #3
- Join Date
- Aug 2007
- Location
- SW Florida USA
- Posts
- 72
Re: Triggering and Electrical Failure in FSX
Hi Tom:
Could you use the valve output to trigger a normally closed relay which would then kill your power supply to selected circuits?
You would need some kind of driver card e.g. LED-64 and maybe a latching circuit to hold te relay until "reset"
Also the valve logic can be inverted for a norm open relay.
Doing this totally with software would be best but if you cant this would be an option.
Regards Ken K
-
08-28-2011, 01:22 AM #4
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
Re: Triggering and Electrical Failure in FSX
Offset 0B6A enables and disables electrical system on FS2004. Have not tried on FSX yet.
In any event the FSVariable should look like the following in your xml file:
-<FSVariable>
<FSID>ELECTRIC_FAIL</FSID>
<Offset>0B6A</Offset>
<Length>1</Length>
<FSType>2</FSType>
<OffValue>0</OffValue>
<OnValue>1</OnValue>
<Format>###0</Format>
<Multiplier>1</Multiplier>
<Divisor>1</Divisor>
<Integer>False</Integer>
<NormalizeAngle>False</NormalizeAngle>
<WriteOnly>False</WriteOnly>
<Bit>0</Bit>
<BitPairing>False</BitPairing>
<Partner>0</Partner>
<Toggle>False</Toggle>
<Rotation>False</Rotation>
<Wrap>True</Wrap>
<Step>1</Step>
<IRS>False</IRS>
<Internal>0</Internal>
</FSVariable>
-
08-29-2011, 08:50 PM #5
-
08-29-2011, 11:43 PM #6
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
Re: Triggering and Electrical Failure in FSX
To test I used circuit with only two components. A digital input and and an FS Input.
-
08-30-2011, 04:42 PM #7
Search Prettys Womans from your city for night
5.Sharing an Essay about PIC16F877