Results 1 to 4 of 4

Thread: PMDG Gear lever

  1. #1
    25+ Posting Member
    Join Date
    Nov 2013
    Location
    Blackburn UK
    Posts
    41
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    PMDG Gear lever

    Good morning everyone,
    So here's my question, PMDG in there SDK list the gear lever as 70087 and the gear level off position as 74183 however none of these seem to work. reading through a few posts i found that using fsuipc the assigned mouse flags is this possible in link2fs if so any pointers? (i found the simconnect codes C01 and C02 still work but prevents the off position working. (I'm using a 3 position switch as a trial currently)

    edit:- thought i better add i'm using the expert section controls as a control i.e. 70087 then 0,1,2 to move the lever which is not working as the post explains below it wont.

    below is a reply from PMDG ref the gear lever.

    He is right that the MAIN_GearLever variable has 3 possible values,
    0=up, 1=off, 2=down..

    This variable is converted from the actual gear lever animation step,
    which has much more intermediate positions. When he tries to set gear
    lever to a "direct" position like 0..1..2, nothing useful happens
    because this is interpreted as an animation step, not "up - off - down".

    He should try using mouse click simulation instead, i.e. pass
    MOUSE_FLAG_LEFTSINGLE or MOUSE_FLAG_RIGHTSINGLE instead of 0, 1, 2.



  2. #2
    10+ Posting Member



    Join Date
    Mar 2009
    Location
    London
    Posts
    12
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: PMDG Gear lever

    Hello,

    I don't use link2fs so unfortunately I'm unable to help you with that but this is from a FSUIPC macro which gives you the values to be written to each offset to emulate a left or right mouse click.

    Code:
    [macros]
    1=NGX_GEAR_up
    1.1=C70087, -2147483648 //-0x80000000
    
    2=NGX_GEAR_off
    2.1=C74184, 536870912 //0x20000000
    2.2=C74184, 131072 //0x20000 
    
    3=NGX_GEAR_down
    3.1=C70087, 536870912 //0x20000000
    hope this helps.

    Paul

  3. #3
    75+ Posting Member
    Join Date
    Apr 2014
    Location
    Tampa, FL, USA, Earth..umm
    Posts
    77
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: PMDG Gear lever

    Tradari, do you have the latest version of Link2fs? If so, go to Experts -> Controls and in the lower right (Input Testing), try putting this when your landing gear is UP:

    ZZ74184536870912

    Press "Send it to FSX"
    This will put the gear in OFF mode.

  4. #4
    25+ Posting Member
    Join Date
    Nov 2013
    Location
    Blackburn UK
    Posts
    41
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: PMDG Gear lever

    Mike, Paul
    Thanks guys you helped me out loads there here's what I've learnt,

    ZZ74184536870912 = up to off
    ZZ70087536870912 = off to down (if up will also move to off then again to down)
    ZZ70087-2147483648 = down to up

    in testing I've found there is no down to off movement.

    in controls i have Z05 as 70087 and Z06 as 74184

    here's my code for the keys section of the arduino

    if (KpinNo == 26){if (KpinStateSTR == "1" ){Serial.println ("");}else {Serial.println ("Z05536870912");}}//gear lever down
    if (KpinNo == 27){if (KpinStateSTR == "1" ){Serial.println ("Z06536870912");}else {Serial.println ("Z05-2147483648");}}//gear lever moving up or off

    Best regards
    Darren Fletcher