Results 1 to 5 of 5
Thread: Warning lights ( eg. Low fuel)
-
10-13-2009, 01:09 PM #1
- Join Date
- Oct 2009
- Location
- singapore
- Posts
- 3
Warning lights ( eg. Low fuel)
is there any program that is able to extract low fuel, low batt and etc data from flight simulator 2004 so that i can create a warning light module for my cockpit?
-
10-13-2009, 04:29 PM #2
- Join Date
- Aug 2008
- Location
- UK
- Posts
- 128
Re: Warning lights ( eg. Low fuel)
It must be possible via FSUIPC and a USB LED output board. I use the Flight Illusion I/O card in my Cessna C172 pit for the annunciators.
-
10-13-2009, 11:38 PM #3
- Join Date
- Oct 2009
- Location
- singapore
- Posts
- 3
Re: Warning lights ( eg. Low fuel)
Hmm. Thanks for the information. However, I can't find the functions in the list of offsets.
-
10-14-2009, 03:11 AM #4
- Join Date
- Jun 2008
- Location
- Berlin, Germany
- Posts
- 49
Re: Warning lights ( eg. Low fuel)
I don't know about the battery but I suppose you need to calculate the available fuel and define a low fuel status and then light up an led.
This is my (not yet tested, sorry for that) version for the B727 fuel calculation in SIOC (mainly "borrowed" from Nico Kaan (who else). Once you have your total fuel you can set "if total fuel < x pounds" then led y = 1. I plan to light up lamps for low total fuel and uneven fuel distribution between the individual tanks to manage cross feed as my fuel indicators don't work yet.
Regards, Florian
// **************** Calculation Fuel in Tanks in lb *************************************************************
Var 5340, name FuelL, Value 0 // Fuel Left Tank in lb
Var 5341, name FI_FuelL, Link FSUIPC_IN, Offset $0B7C, Length 4 // Fuel left tank level, % * 128 * 65536 also 838860800 also Gesamtfaktor, Faktor durch Gesamt lb * 10 ergibt Rechenfaktor
{
L0 = DIV &FI_FuelL, 8389 // 10000 lbs
IF (L0 <> &FuelL)
{
&FuelL = L0
}
}
Var 5342, name FuelC, Value 0 // Fuel Center Tank in lb
Var 5343, name FI_FuelC, Link FSUIPC_IN, Offset $0B74, Length 4
{
L0 = DIV &FI_FuelC, 28436 // 29500 lbs
IF (L0 <> &FuelC)
{
&FuelC = L0
}
}
Var 5344, name FuelR, Value 0 // Fuel Right Tank in lb
Var 5345, name FI_FuelR, Link FSUIPC_IN, Offset $0B94, Length 4
{
L0 = DIV &FI_FuelR, 839 // 10000 lbs
IF (L0 <> &FuelR)
{
&FuelR = L0
}
}
Var 5345, name TotalFuel, Value 0 // Total Fuel in lb
Var 5345, name TotalFuelCalc, Value 0 // Total Fuel Calculation Value in lb
{
L0 = FuelL + FuelC
L1 = L0 + FuelR
IF (L1 <> TotalFuel)
{
&TotalFuel = L1
}
}
-
10-14-2009, 10:34 AM #5
- Join Date
- Oct 2007
- Location
- N Ireland
- Posts
- 251
Re: Warning lights ( eg. Low fuel)
FSUIPC Offsets
0B74
4
Fuel: centre tank level, % * 128 * 65536
0B78
4
Fuel: centre tank capacity: US Gallons (see also offsets 1244– for extra FS2k/CFS2 fuel tanks)
0B7C
4
Fuel: left main tank level, % * 128 * 65536
0B80
4
Fuel: left main tank capacity: US Gallons
0B84
4
Fuel: left aux tank level, % * 128 * 65536
0B88
4
Fuel: left aux tank capacity: US Gallons
0B8C
4
Fuel: left tip tank level, % * 128 * 65536
0B90
4
Fuel: left tip tank capacity: US Gallons
0B94
4
Fuel: right main tank level, % * 128 * 65536
0B98
4
Fuel: right main tank capacity: US Gallons
0B9C
4
Fuel: right aux tank level, % * 128 * 65536
0BA0
4
Fuel: right aux tank capacity: US Gallons
0BA4
4
Fuel: right tip tank level, % * 128 * 65536
0BA8
4
Fuel: right tip tank capacity: US Gallons
Are these of any use to you? Look also in the FS2Phidgets manual where there is an example of doing what you wish usinng an Phidgets LED64 card.
BillBill
P3D/ IFly737 Pro
Similar Threads
-
Master Caution / Master Warning lights using FS2Phidget5 (noob)
By mhayling in forum Phidgets & Cockpit Simulator BuilderReplies: 3Last Post: 05-18-2010, 02:08 PM -
Anyone set up Master Caution/Warning Lights Using Fs2phidgets?
By mhayling in forum FS2Phidget UsersReplies: 4Last Post: 03-04-2010, 02:03 AM -
How to interface warning lights.
By CessnaGuy in forum General Builder Questions All Aircraft TypesReplies: 11Last Post: 02-05-2010, 05:11 PM -
Master Caution/ Warning lights
By gokhotit in forum My Cockpit UpdateReplies: 36Last Post: 11-14-2008, 08:03 PM