PDA

View Full Version : Landing Lights and PM Sytems



Olympic260
12-24-2007, 06:27 PM
Hello,

I am trying to use a LED phidget card internally with PMSystems to turn on/off the Landing Gear LEDs.

Althought the Geardown and GearTrans are from default on the sysvar.txt when I declare them on phidgets.txt nothing happens. If i use the test switch then the LED are turned on as expected. I have the same problem with the Flaps trans light.

Any Ideas?

Chris

Carlo Blanch
01-01-2008, 11:36 AM
hello, have you checked if the var is used in your .lgc file?
in the standard pmsys737.lgc is not used.
I use the $0BE0 offset from FS (Flap position) to light the LEFlaps annunciators.

Carlo Blanch
01-01-2008, 11:59 AM
I noticed that in Thomas Richter 737NG file that vars are used in the logic file:

//Flaplights-Begin

if (FlapsPosL = 409) or (FlapsPosL = 2047) or (FlapsPosL = 4095) or (FlapsPosL = 6143) or (FlapsPosL = 10239) or (FlapsPosL = 16383)
FlapsExt = 1
else
FlapsExt = 0
endif

if (FlapsPosL > 0) and not FlapsExt
FlapsTrans = 1
else
FlapsTrans = 0
endif

//Flaplights-End


//Gear-Begin

TransLeft = (LandGearLeft > 100) and (LandGearLeft < 16000)
TransRight = (LandGearRight > 100) and (LandGearRight < 16000)
TransNose = (LandGearNose > 100) and (LandGearNose < 16000)
//
DownLeft = (LandGearLeft > 15300)
DownRight = (LandGearRight > 15300)
DownNose = (LandGearNose > 15300)

//Gear-End

Olympic260
01-02-2008, 02:15 AM
Hello Carlo,

First of all happy new year,

I have manged to make the gear to work fine, (YouTube - Home Cockpit Gear test)
the flaps is another story, I have checked old Thomas file and I tryied using his variables.

He is using the FlapsPosL offset (0BE0) but the values in this file are not correct. 409 value is the flaps 5 so there is no indication for flaps 1 and 2 and no matter how I tryied I couldn't find the values for flaps 1 and 2. I ll send an email to Thomas asking him...

Peter Dowson
01-02-2008, 06:14 AM
but the values in this file are not correct. 409 value is the flaps 5 so there is no indication for flaps 1 and 2 and no matter how I tryied I couldn't find the values for flaps 1 and 2.
Maximum flap deflection is 16383 (3FFF in hex). The others are in proportion. For example, for an aircraft with 40 degree max flaps, flaps 5 would be 5/40ths of 16384 (-1) or 2048-1 = 2047. Those seem to be the figures used by Thomas anyway -- "409" certainly seems to represent Flaps 1 on that basis (16384/40)-1 = 408.6.

Note however that 0BE0 is only concerned with trailing edge flaps. More detailed values are given elsewhere (30E0 to 30FE).

Pete

Carlo Blanch
01-02-2008, 05:15 PM
I have manged to make the gear to work fine, (http://www.youtube.com/watch?v=HXplV-lcuoc)
the flaps is another story, I have checked old Thomas file and I tryied using his variables.

He is using the FlapsPosL offset (0BE0) but the values in this file are not correct. 409 value is the flaps 5 so there is no indication for flaps 1 and 2 and no matter how I tryied I couldn't find the values for flaps 1 and 2. I ll send an email to Thomas asking him...

Very good !

About Flaps:
maybe you don't need to create your own code, just use the vars , or not?
I think the code is good.

I use SIOC from opencockpits, but the values I have are similar (checked with the standard FS 737 .

look my Flap indicator:
YouTube - LE_Flaps_ 2°

Carlo Blanch
01-02-2008, 05:20 PM
Thanks Pete, I used this offset (0BE0) because I have only a needle on my servo, so is more easy .

The others are for flap1 and flap2 ?


Carlo.

Peter Dowson
01-02-2008, 08:10 PM
I used this offset (0BE0) because I have only a needle on my servo, so is more easy .

The others are for flap1 and flap2 ?

Not specifically. They differentiate between leading and trailing edge flaps, and also between left and right and inboard and outboard. There's enough information there to drive the illuminated status indicators on the overhead panel.

Flaps 1 and 2 still do give values in 0BE0. For the 737 flaps 2 is 819 and flaps 1 is 409, like I said. (16384 * flap angle / 40). Mr. Olympic260 is wrong when he asserts "the FlapsPosL offset (0BE0) but the values in this file are not correct. 409 value is the flaps 5 so there is no indication for flaps 1 and 2". All the indications are present and correct and in the right proportions.

[LATER]
Just checking on FSX, and 0BE0 is the same there -- though rounding gives slightly different values which really need to be handled in any pmSystems logic. For the default 737 the values are:

0 = 0
1 = 410 (409 on FS9)
2 = 819
5 = 2048 (2047 on FS9)
10=4096 (4095 on FS9)
15=6144 (6143 on FS9)
25=10239
30=12287
40=16383

so they're never more than 1 adrift. A simple formula, like "(x-1) and 16382" would make them the same (rounding to to the even number below, ie. 0, 408, 818, 2046, 4094, 6142, 10238, 12286 and 16382).

Regards
Pete

Thomas Richter
01-03-2008, 02:34 AM
Hi

You can also check the following Offsets for the LE Flaps setting, controlled by GC-EICAS (LeFlaps control has to be ON in Menu and the gauges has to be visible).

5646 .4 LEFlapsTransit //written by GC
5646 .5 LEFlapsExtended //written by GC

This are standart Offsets from the sysvar.txt!

Olympic260
01-03-2008, 03:20 AM
Flaps 1 and 2 still do give values in 0BE0. For the 737 flaps 2 is 819 and flaps 1 is 409, like I said. (16384 * flap angle / 40). Mr. Olympic260 is wrong when he asserts "the FlapsPosL offset (0BE0) but the values in this file are not correct. 409 value is the flaps 5 so there is no indication for flaps 1 and 2". All the indications are present and correct and in the right proportions.


I ll check this again maybe something was wrong from my side. I have made the tests with PMDG model and the indications come on only at 5 and onwards.


Hi
You can also check the following Offsets for the LE Flaps setting, controlled by GC-EICAS (LeFlaps control has to be ON in Menu and the gauges has to be visible).
5646 .4 LEFlapsTransit //written by GC
5646 .5 LEFlapsExtended //written by GC


Thx Thomas. To be honest when I made the test I had only PMSystems active and FS no other software. This is maybe why teh 5646 offset didn;t work. i ll try this weekend again.

Thank you

Peter Dowson
01-03-2008, 12:47 PM
II have made the tests with PMDG model and the indications come on only at 5 and onwards.

I just tried the FS9 version of PMDG's 737-700 and got the following in 0BE0:

0 = 0
1 = 409
2 = 819
5 = 2047
10=4095
15=6143
25=10239
30=12287
40=16383

These are identical to those from the default 737.

Regards

Pete