Jump to content
The simFlight Network Forums

sinonquoi

new Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by sinonquoi

  1. Actually, I may not need to. I thought of a very simple way to do this sort of thing, very flexibly. First, make sure your FSUIPC installation is up to date -- latest versions are supplied in the Download Links subforum.

    Then save the following as, say, "multiaxis.lua" in your FS Modules folder:

     

    function applyaxis(val)
       cntrl = ipc.readUD(0x66c0)
       ipc.control(cntrl,val)
    end
    
    event.param("applyaxis")
    
    and edit the FSUIPC INI file, adding this section:

    [Auto]

    1=Lua multiaxis

    (if you already have an [Auto] section, add the line with the next available number).

    Now run FS. Go to FSUIPC axis assignments and assign the axis you want to switch as an "FS control", choosing this one from the drop-down list:

    Luavalue multiaxis

    Then go to the Buttons assignments and assign the buttons you want to use for selecting the axis use, on the right-hand side, as follows:

    Offset dword set, with Offsetx66c0 and the Parameter set to the value of the FS or FSUIPC control you want the axis to send.

    The controls are listed in a List installed in your FSUIPC Documents folder, in the Modules folder. You can use any control, but obviously only axis controls make much sense. Those are all either named "Axis ..." or end in "set". There are more controls, added by FSUIPC, and listed in the FSUIPC Advanced User's guide. BUT the ones you really want, for the purposes you chose, are currently only published in the "Changes" document included with the recent FSUIPC updates (see Download Links). They are numbered 64101 to 64144, and the ones you want are:

    64136 steering tiller

    64123 flaps

    64122 spoilers/speed brakes

    Once you've done all this, exit to FS, select a mode using the buttons/switches you assigned above, then go into FSUIPC joystick calibrations and calibrate the axis for that selection. You'll need to exit to change the mode to calibrate each separately -- FSUIPC doesn't obey the button presses when in the options (for pretty obvious reasons).

    Note that this technique is extensible for any number of different uses for the same axis and, by using different offsets (66C4 is the next -- the range 66C0 to 66FF is free for users, giving 16 possible DWORDs to use) and renamed versions of "multiaxis.lua", can be applied to any and all axes.

    I've tested all this with FSUIPC 4.754 and FSX. Have fun!

    Regards

    Pete

     

     

    Hi all,

     

    I am trying to use the lua above as proposed by Pete, however with a slightly different objective : I am using a Microsoft Sidewinder FF2 joystick, and I would like to achieve the following :

    - "Normal" mode : "S" axis is used for throttle, as per default assignement

    - "Secondary mode" : using joystick button #2, I want to change the axis assignement so that the throttle axis becomes the prop pitch axis

     

    I am using the default Baron with a specific profile to test.

     

    I have installed the above lua and followed pete's process above, except I have assigned "Offset dword set", with Offset x66c0 to Button #2, and the Parameter set to "65765" which is listed as Prop pitch axis

     

    However, I don't understand the calibration part, and basically nothing happens after I have pressed button #2 once : when I move the axis it still commands throttle...

     

    I am sure I am missing something as I am new to lua usage. Maybe something very basic, like the way button #2 is programmed : should it be assigned to "offset dword set x066c0" only when pressed or should I do something else, like "control to repeat while held" or another control when released ?

     

    I have FSUIPC registered v4.934

     

    Any help appreciated !

     

    Best regards

×
×
  • 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.