Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    75+ Posting Member Olympic260's Avatar
    Join Date
    Dec 2006
    Location
    Athens Greece
    Posts
    79
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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?

    Chris
    Chris

  2. #2
    10+ Posting Member
    Join Date
    Jan 2007
    Location
    Italy
    Posts
    13
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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.

  3. #3
    10+ Posting Member
    Join Date
    Jan 2007
    Location
    Italy
    Posts
    13
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  4. #4
    75+ Posting Member Olympic260's Avatar
    Join Date
    Dec 2006
    Location
    Athens Greece
    Posts
    79
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  5. #5
    500+ This must be a daytime job
    Join Date
    Jan 2007
    Posts
    564
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by Olympic260 View Post
    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

  6. #6
    10+ Posting Member
    Join Date
    Jan 2007
    Location
    Italy
    Posts
    13
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by Olympic260 View Post

    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:
    [ame="http://www.youtube.com/watch?v=hRokPIV6wKg"]YouTube - LE_Flaps_ 2°[/ame]

  7. #7
    10+ Posting Member
    Join Date
    Jan 2007
    Location
    Italy
    Posts
    13
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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.

  8. #8
    500+ This must be a daytime job
    Join Date
    Jan 2007
    Posts
    564
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by Carlo Blanch View Post
    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

  9. #9
    300+ Forum Addict
    Join Date
    Dec 2006
    Location
    Ireland
    Posts
    341
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  10. #10
    75+ Posting Member Olympic260's Avatar
    Join Date
    Dec 2006
    Location
    Athens Greece
    Posts
    79
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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
    Chris

Page 1 of 2 12 LastLast

Similar Threads

  1. Landing Gear Lights
    By egkkman in forum General Builder Questions All Aircraft Types
    Replies: 0
    Last Post: 05-01-2010, 07:15 AM
  2. Landing lights
    By Jackpilot in forum General Builder Questions All Aircraft Types
    Replies: 1
    Last Post: 03-13-2008, 06:11 PM
  3. landing lights
    By Jackpilot in forum General Builder Questions All Aircraft Types
    Replies: 0
    Last Post: 12-19-2007, 04:46 PM
  4. Landing and Taxi Lights
    By Trevor Hale in forum General Builder Questions All Aircraft Types
    Replies: 25
    Last Post: 11-26-2007, 12:18 PM
  5. Landing lights
    By Marnix MFS in forum General Builder Questions All Aircraft Types
    Replies: 7
    Last Post: 03-17-2007, 04:14 PM