November 25, 201213 yr This is aimed primarily at the NGX development team, but if anyone else has any suggestions feel free. I'm looking to map the HGS lower/raise function to an axis on one of my throttle quads, but it isn't that simple. The biggest problem is that FSUIPC (which I'm using to do the mapping) doesn't allow a keyboard press on an axis map. FSUIPC only allows button presses as keyboard emulations, which means even if I assign a keyboard key to the HGS through the CDU options page, I can't then assign that keyboard key to the lever axis through FSUIPC. The only list of functions I can assign through an axis are the FS Actions that come with FSUIPC. Since the HGS is a custom feature, the generic FS functions doesn't include any interface to it. Alternately, FSUIPC does allow custom mouse macros but unfortunately clicking on the HGS itself or the it's housing doesn't generate a function ID...probably because again it's a custom feature and doesn't follow the traditional coding rules of FSX. This leaves a custom .lua file, which I've used in the past to map functions on the JS41 that didn't come with the default keybind .ini file. As far as I know, a .lua file can't be made to interface directly with the NGX commands. If it can be made, I would have no idea how to make it. I'm not a developer or a programmer, and the most advanced thing I've coded was HTML. I don't know if any of the coding from the SDK could be fashioned into a custom .lua and then used through FSUIPC as an FS Action to map it to an axis using the parameter box. Can anyone from PMDG give me any help on this? Is this even remotely possible or is it just not going to happen? I'd appreciate any feedback! AJ Pongress
November 27, 201213 yr Author Anyone at PMDG have any advice on this? Sent from my iPhone using Tapatalk...typing errors imminent AJ Pongress
November 28, 201213 yr What you need is LINDA (donationware). The latest version of LINDA (v1.11) with the latest NGX module (v1.8) gives you access to over 700 NGX functions which can be easily mapped to any joystick (or other) buttons.Those functions naturally include HGS_up, HGS_down, and HGS_toggle. Pop over to the LINDA forum here at Avsim for more information (and then look at Downloads to get the modules I mentioned above): http://forum.avsim.n...orum/424-linda/ You might also want to look at this thread for an extended manual on how to use LINDA: http://forum.avsim.n...etailed-manual/ Best of luck, Brian P.S. LINDA builds on the Lua abilities given by the registered version of FSUIPC, so you'll need the latest paid-for version of that, too. 8-) Since FSUIPC does everything you could wish for with the axes, LINDA deals with buttons only.
November 29, 201213 yr EDIT: If you haven't already, add this to the 737ngx_options.ini file \Microsoft Flight Simulator X\PMDG\PMDG 737 NGX [sDK] EnableDataBroadcast=1 -------------------------------------- In FSUIPC bring up the Axis Assignment tab and then active the axis you want to use. In the right hand column: set when range entered to custom control 70611 with parameter 0 then set range when exited to 70611 with parameter 1 Now move your axis to the point wher you want to trigger the HGS to come down. Click that "From" button just above those to fields. Then continue to move this axis to the end of the range and click "To". Now when you move that axis it should drop down at the point you specified to the end of the axis. Leaving that range with trigger it to go back up. Though you maybe need to reverse the axis if operates backwards. Hope that makes sense. Shaun OrtolanoTronAviation.com
November 29, 201213 yr Author @brian747: thanks for the info, but as you said Linda only works with button assignments and I'm trying to map the Hgs to an axis. EDIT: If you haven't already, add this to the 737ngx_options.ini file \Microsoft Flight Simulator X\PMDG\PMDG 737 NGX [sDK] EnableDataBroadcast=1 -------------------------------------- In FSUIPC bring up the Axis Assignment tab and then active the axis you want to use. In the right hand column: set when range entered to custom control 70611 with parameter 0 then set range when exited to 70611 with parameter 1 Now move your axis to the point wher you want to trigger the HGS to come down. Click that "From" button just above those to fields. Then continue to move this axis to the end of the range and click "To". Now when you move that axis it should drop down at the point you specified to the end of the axis. Leaving that range with trigger it to go back up. Though you maybe need to reverse the axis if operates backwards. Hope that makes sense. Going to try this when I get off work tonight. Thanks! Sent from my iPhone using Tapatalk...typing errors imminent AJ Pongress
November 29, 201213 yr Author Worked perfectly! Thanks so much!Just wondering...where did you pull the 70611 value from? I didn't see it in the SDK. AJ Pongress
November 29, 201213 yr Worked perfectly! Thanks so much!Just wondering...where did you pull the 70611 value from? I didn't see it in the SDK. Awesome! I forget the exact path and name right now (at work but I can't check when I get home) but in the FSX\pmdg\737ngx SDK folder there's like a .h file or something. Open that in notepad and it's got all the control codes for literally everything on the plane. It's basically list everything as Base control + XXX with base being 69632. So in that list you'll find HUD STOW is Base + 979 = 70611 I built myself a custom MIP and using all those codes I've been able to get my EFIS controls, IRS knobs, autobrake, etc.. to function. About to start on an overhead that'll use the same stuff. Shaun OrtolanoTronAviation.com
November 29, 201213 yr Author Ah nice. I missed that in the SDK file. Will have to look again. AJ Pongress
November 30, 201213 yr Here we go: Microsoft Flight Simulator X\PMDG\PMDG 737 NGX\SDK Then open the PMDG_NGX_SDK.h file there in notepad. about 1/4 ways down is where the control events start. Shaun OrtolanoTronAviation.com
Create an account or sign in to comment