Results 1 to 10 of 11
Thread: Landing Lights and PM Sytems
-
12-24-2007, 06:27 PM #1
Landing Gear and PM Sytems
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?
ChrisChris
-
01-01-2008, 11:36 AM #2
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 14
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.
-
01-01-2008, 11:59 AM #3
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 14
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
-
01-02-2008, 02:15 AM #4
Hello Carlo,
First of all happy new year,
I have manged to make the gear to work fine, ([ame="http://www.youtube.com/watch?v=HXplV-lcuoc"]YouTube - Home Cockpit Gear test[/ame])
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...Chris
-
01-02-2008, 06:14 AM #5
- Join Date
- Jan 2007
- Posts
- 496
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
-
01-02-2008, 05:15 PM #6
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 14
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:
[ame="http://www.youtube.com/watch?v=hRokPIV6wKg"]YouTube - LE_Flaps_ 2°[/ame]
-
01-02-2008, 05:20 PM #7
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 14
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.
-
01-02-2008, 08:10 PM #8
- Join Date
- Jan 2007
- Posts
- 496
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
-
01-03-2008, 02:34 AM #9
- Join Date
- Dec 2006
- Location
- Ireland
- Posts
- 255
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!Regards
Thomas
-
01-03-2008, 03:20 AM #10Flaps 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.
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
Thank youChris
Similar Threads
-
Landing Gear Lights
By egkkman in forum General Builder Questions All Aircraft TypesReplies: 0Last Post: 05-01-2010, 07:15 AM -
Landing lights
By Jackpilot in forum General Builder Questions All Aircraft TypesReplies: 1Last Post: 03-13-2008, 06:11 PM -
landing lights
By Jackpilot in forum General Builder Questions All Aircraft TypesReplies: 0Last Post: 12-19-2007, 05:46 PM -
Landing and Taxi Lights
By Trevor Hale in forum General Builder Questions All Aircraft TypesReplies: 25Last Post: 11-26-2007, 01:18 PM -
Landing lights
By aviaparts in forum General Builder Questions All Aircraft TypesReplies: 7Last Post: 03-17-2007, 04:14 PM
Explore Exciting Connections for a Night of Fun in Your City
Ready for an Unforgettable Night?...