Jump to content
The simFlight Network Forums

astrograppa

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by astrograppa

  1. I can only think of two ways to do this:

    1. You could, in the Lua plugin, have an ipc.sleep for 100 mSecs, then, before doing the action, check one of the Lua flags for that plugin. If it is set, don't perform the action. In FSUIPC assignments program the exit from the zone to set that flag.

    or

    2.Just as above, but program the exit from the zone to Kill the Lua plug in.

    The second isn't a "nice" way though, so try the first.

    Regards

    Pete

    Thanks for the information, Pete.

    I tried the "2" but not working well....

    I want to try the "1" but I don't know the LUA command for read the axis.

    In my case is: joy 1 axis Y. Can you give me an example of the LUA programming?

    Thanks

    Fabio

  2. The detection is based on normal polling rates on the joystick. but if the axis values are changing, any very small zone could be missed. You probably need to widen the zones. You could try increasing the poll rate (descrease the poll interval parameter) but take care or you risk affecting FS performance.

    Please explain. Who says they don't? The internal handling is the same for assignments no matter where they are made.

    Regards

    Pete

    [Axes.LSH MD-82 McDonnell Douglas]

    0=1Y,500

    1=1Y,B,1000,5500,L7:R,0

    2=1Y,B,5500,9500,L5:R,0

    3=1Y,B,9500,12500,L4:R

    4=1Y,B,12500,16383,L6:R,0

    In this setup, the command should go out only if the value of the axis remains inside for more than a certain time, otherwise it must be produced no command (i.e. axis value 6000 for 100 msec, no exit command; axixs value 6000 for 500 msec command LUA 5).

    how can I do?

    thanks

    Fabio

  3. Please explain. Who says they don't? The internal handling is the same for assignments no matter where they are made.

    Regards

    Pete

    [buttons.LSH MD-82 McDonnell Douglas]

    0=P0,13,CL6:R,0

    1=P0,14,CL7:R,0

    [LuaFiles]

    4=tcas+c

    5=tcas+d

    6=tcas+m

    7=tcas+u

    [Axes.LSH MD-82 McDonnell Douglas]

    0=1Y,500

    1=1Y,U,1000,5500,L7:R,0

    2=1Y,U,5500,9500,L5:R,0

    3=1Y,U,9500,13000,L4:R,0

    4=1Y,U,13000,16383,L6:R,0

    In this example, the LUA command work in the buttons , but it does not work in the axis. Why?

  4. Thanks Pete,

    you are a true genius and an endless resource of information.

    I modified the program in this way and it works perfectly.

    x = ipc.readUB(0x66C0)

    if x == 0 then

    ipc.control(65909)

    else if x == 1 then

    ipc.control(65909)

    ipc.control(65911)

    else if x == 2 then

    ipc.control(65911)

    end

    end

    end

    x = x + 1 -- move on to next mode

    if x > 2 then -- 3 for 4 different settings (as we start at 0), and so on

    x = 0

    end

    ipc.writeUB(0x66C0, x)

  5. Hi,

    I would like to make a little lua program that allows me (means a button of joistick)to toggle a view of panel, then a second panel and finally none.

    The sequence is as follows:

    1-push button

    2-view the overhead panel (shft+6) number control 65911

    3-push button

    4-view the pedestal (shft+5) number control 65910 (and remove the overhead)

    5-push button

    6-remove pedestal (any panel)

    7-push button

    ....restart over

    It's possible? ...and it is easy?

    Tanks

  6. Hello, I bought from SimMarket the product FSUIPC 3.93 on 12/30/09.

    Now, I have become aware of the version 3.96 releases the January 10th 2010.

    Can I use my code for the new version 3.96?

    I have the problem of crash of FS2004 with the "Buttons" and "key Presses" page and I can't use the function "JoystickTimeout" because not present in my version of FSUIPC 3.93.

    What can I do?

    Regards

    Fabio Grappasonni

    Italy

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.