Results 1 to 2 of 2
  1. #1
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Old: Auto throttle LED light Code

    I am using using SIOC & Lekseecon and am having trouble writing simple code to get my LED light to work when the auto throttle is engaged.
    I have tried;
    Code:
    var 0745 
    { 
      &ATled = TESTBIT v0745 ,1 
    } 
    Var 4594 , name ATled, link IOCARD_OUT, output 30 // AT led
    But this does not work.
    I can link the led to the switch (var 0292), but I want the led to go off when I hit the autothrottle disengage button on the throttle.

    I know how to do this using FSUIPC offsets, but am a little confused when it comes to Lekseecon.

  2. #2
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Old: Auto throttle LED light Code

    This is what the Manual says:

    745 autothrottle 0=OFF, 1=ARMED, 2=HOLD, 3=N1, 4=SPD, 5=FLCH, 6=VNAV, 7=IDLE, 8=TOGA, 9=FAIL

    Note: the SDK value autothrottle contains a bug, it does not show for instance the FLCH mode...


    Var745 contains integer values and not exclusive bits for each position.

    In your program you are testing bit 1... This bit will be set if var 745 is HOLD or N1 or VNAV or IDLE

    So you have to change your program.

    But even then it will not always work, see the Note in the Manual, because in FLCH mode var 745 will show 0. The Level-D team is aware of this bug, and I hope they will fix it in a future release.

Similar Threads

  1. Parking Brake Light and Stab Trim Light (real throttle assy.)
    By blueskydriver in forum I/O Interfacing and Hardware
    Replies: 0
    Last Post: 09-10-2010, 07:13 PM
  2. auto throttle
    By Spatate in forum Cockpit Parts and Motion Platforms
    Replies: 4
    Last Post: 03-05-2009, 06:16 PM
  3. Auto Throttle
    By garyk007 in forum General Builder Questions All Aircraft Types
    Replies: 2
    Last Post: 06-03-2007, 01:19 PM
  4. Kit for Auto-throttle, information please!
    By Paulo Jr in forum Phidgets & Cockpit Simulator Builder
    Replies: 1
    Last Post: 04-27-2005, 05:50 PM