PDA

View Full Version : Cant find offsets for ...



Jan Pemöller
02-02-2005, 05:39 AM
Hi,

I am buliding a 737 NG Cockpit (www.cityvox.de/b737)
Overheadpanel is nearly complete and running with LED64 / and 0/16/16 ...

But I canot find any offsets in the F2uipc ini

- ENG VALVE CLOSED
- SPAR VALVE CLOSED

(both located over the FUEL PANEL for Eng 1 and 2)

Can somebody help here pls ...

Thanks
Jan

Jan Pemöller
02-03-2005, 11:04 AM
[fsCutoff1]
Offset=890
Length=2
FSType=Digital
OffValue=0
OnValue=1

[fsCutoff2]
Offset=928
Length=2
FSType=Digital
OffValue=0
OnValue=1

any idea?

alandyer
02-03-2005, 03:21 PM
Jan,

Had a look on your web site and see you are using pmSystems.

Here's tip:

Get into pmSystems Developer Mode.
Make sure you check box to "Show variables".
Click on a switch or annunciator.

The FSUIPC Offset and Length will pop up on screen.
The Offset is what you need.
For two VALVE CLOSED functions these are: 0890 and 0928

In the pmSystems documenation (sysvar.txt) these are listed as:
fsCutoff1 and fsCutoff2.

If you look through your FS2PhUIPC.ini file you will see these offsets listed as:
[ENGINE_1_FUEL_LEVER] and [ENGINE_2_FUEL_LEVER]

As a rule:
- FSUIPC offsets 5600 and greater are special offsets for pmSystems.
- If the variable name on the screen in Developer mode begins with "fs"
then pmSystems uses a standard Flight Sim offset to achieve functionality.

Best regards,
Alan.

Jan Pemöller
02-03-2005, 10:44 PM
Hi Alan,

Thanks for your answer.
The only problem I see is that I do not know the right code for FS2higets!

Pm Systems variables says:

0890 2 fsCutoff1 WORD

I do not know the exact FS2hidgets code, specialy for the variable "WORD".

I tried, and saw some reading, but no LED lighted up:

[fsCutoff1]
Offset=890
Length=2
FSType=Digital
OffValue=0
OnValue=1

Thanks for any help, or link to documentation ;-)

Jan

alandyer
02-04-2005, 06:12 AM
Jan,

Did you remember to ENABLE component ?

You don't need to do anything with INI file.
Just assign LEDs to ENGINE_1_FUEL_LEVER and ENGINE_2_FUEL_LEVER

The lines in INI file are not Code, but settings.
Important distinction.

[ENGINE_2_FUEL_LEVER] <----- Name to appear in FS2Phidget Assignment
drop-down list.
Offset=0928 <----- FSUIPC Offset
Length=2 <----- FSUIPC Length
FSType=Digital <----- Tells FS2Phidget how to send or receive values
to or from FSUIPC.
OffValue=0 <---- FSUIPC value to send or recieive for hardware
OFF state.
OnValue=16384 <---- FSUIPC value to send or recieive for hardware
ON state

Alan.

Jan Pemöller
02-04-2005, 06:52 AM
Thanks Alan,

it seems to work now!
Here will be the calibrating feature interesting ...

The lamps have only very short 100% power. The rest of the time they are off or lighting 50% ...

Anyway, thanks for the fast help!
Regard´s
Jan