MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

icon
Avatar
delta464
Posts: 3
Hello! I am using FSX. I am new to mobiflight, and need help using offset 0af8 for led indication of "Left fuel tank". I only had success with "Both".
(also, why cannot use Event ID for "output"?). Thanks, David
2021-01-10 15:38
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 4169
Supporter
Hi David

iconQuote:

(also, why cannot use Event ID for "output"?). Thanks, David


Why you can not eat a stone.... Cause its no food.... Its a stone ! :P
A Output need a Information ( we like to show on a Display or we contoll a LED) ..... And a Information is a Value . Offsets include those Values.

A EventID is like a recorded Action we simply "fire" or execute. So the Event itself not have a value.
Hardly explaned.... If the Event for example set the Landing Lights to ON.... It not know if they still ON or currently OFF.... the Event is stupid and just say to sim "Landing Lights ON" .

****************

About the Offset.

It looks good and should work in FSX. What is your Problem there ?
The Offset "should" be "0" for NONE "1" for BOTH 2 for LEFT and 3 for RIGHT ( and many more if you fly a aircraft with multiple tanks)

For testing.... Change the Fuel selector in your aircraft ( by mouse in Virtual Cockpit) and observe the Value of that Offset.
Good Luck !
2021-01-10 18:18
Avatar
delta464
Posts: 3
Thank you Mr. Pizman for your fast respond!
I have unregistered copy of FSUIPC4 and in the log is written (when I change Fuel selector to Left):

EVENT: Cntrl=65794 (0x00010102), Param= 0(0x00000000) *** 2159344
FUEL_SELECTOR_LEFT

I tried using 10102 as Offset, but not working.

By the way, how do I post a photo, when I press the photo icon I only get [ img][/img ]
:confused:
2021-01-12 11:07
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1648
Supporter
Hi,

if FSUIPC tells you that he recognized an Event then you can not use an Event as Offset. Use 65794 as EventID and as Input.

Within the [ img][/img ] you can insert a link i.e. where you have upload the pic to a pic-hoster
Grüße,
Stephan
2021-01-12 16:36
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 4169
Supporter
OMG.... You guys mix up a lot of things.

Stephan missunderstand the request.... Delta464 talk about OUTPUT all the time.... So Input is not a solution.
But sure... As i said in first awnser with my "eat a rock" example.... Delta you must stop thinking about EventID.... They will NOT work for a Output ! No Chance !



About Problem:

1. Your Logging is fully wrong ! You quote the wrong Lines.
EventID 65794 is is "PAUSE ON" . So pretty sure you press the "p" button before and paused the sim. And thats the Event you see in the Log ! :w00t:

2. Your try with "Offset 10102" is also Wrong.....
A Offset is Hexadecimal and in FSUIPC4 in a range of 32 Bits.... Means a maximum of 4 Diggits . So from 0000 to FFFF
10102 is NOT a Offset Adress.... Its just the Hexadecimal Value of the Decimal Event ID Number....

65794 (Decimal) == 10102 (HexaDec) == 0001 0000 0001 0000 0010 (Binary)

**************

So again....
The Correct Offset to read the current Fuel Select Status is as you already expected.... Offset 0AF8

iconQuote:

0AF8 2 Fuel tank selector: 0=None, 1=All, 2=Left, 3=Right, 4=LeftAux,
5=RightAux, 6=Centre, 7=Centre2, 8=Centre3, 9=External1,
10=External2, 11=Right Tip, 12=Left Tip, 13=Crossfeed,
14=Crossfeed LtoR, 15=Crossfeed RtoL, 16=Crossfeed both,
17=External, 18=Isolate, 19=Left Main, 20=Right Main

Good Luck !
2021-01-13 23:55
icon