WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Home Cockpit - Das Forum für die "Bastler" (http://www.wcm.at/forum/forumdisplay.php?f=55)
-   -   Fuel led (http://www.wcm.at/forum/showthread.php?t=102001)

Jan 737 07.07.2003 21:37

Fuel led
 
Hi all,

I try to get a led at work that shows a fuel cappicity less then 20 %
in the center tank.
The led don't turn on when the cap. drops below 20%.

What i'm doing wrong?
See the attachment.

Regards Jan.

dirkan 07.07.2003 22:17

Hi Jan

dirkan 07.07.2003 22:21

you must know, what values fsbus returns on fuel. To see this, add a temporary display object and set source to fuel.
The display will show those % values of the fs dialog box for fuels.

If LED should shine from 0-20, set min to 0 and max to 20, thats all.
Since fuel is not a parameter which changes any microsecond, i have assigned a delay of 10s between each poll. This reduces system load and means that you have to wait a bit until LED goes on.

regards Dirk

Jan 737 08.07.2003 15:22

Hi Dirk,

I tryed,I add a 5-digit display and route it to fs.standard.fuel.center, but when I set the fuel cap. in fs2k2 to 100% for the centertank, the currentvalue at the display gives 102 and on the 5-digit display a value of 01078(what this value meens).
When i change the value in fs2k2 to 50% then the currentvalue change to 51 and on the 5-digitdiplay still display 01078.
Works whit all % values set in fs2k2.

What'i'm doing wrong?

Regards Jan.

Jan 737 09.07.2003 16:46

Found it
 
Hi Dirk,

Sorry but i found it, it's much easyer then i thought.
Set the value from 0 to 20 and it works great.

Regards Jan.


Alle Zeitangaben in WEZ +2. Es ist jetzt 18:57 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag