PDA

View Full Version : Warning lights ( eg. Low fuel)



chiobups
10-13-2009, 01:09 PM
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?

CrashEd
10-13-2009, 04:29 PM
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.

chiobups
10-13-2009, 11:38 PM
Hmm. Thanks for the information. However, I can't find the functions in the list of offsets.

LH784
10-14-2009, 03:11 AM
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
}
}

Holclo
10-14-2009, 10:34 AM
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.
Bill