December 16, 201114 yr I wonderif pausing the sim after the AP is disengaged, then moving the manual trim to get the trim indicator in the aircraft to read what it did while the AP was engaged before unpausing the sim would work?It works. Just tried it and as soon as the sim is un-paused, the trim jumps to where you set it while paused
December 16, 201114 yr Hi BruceI only have one throttle quadrant at a time plugged into a USB port at the front of my computer. Just a thought; if you do buy the Saitek trim wheel and have a USB socket that you can easily get at, then you could unplug it when flying the NGX and use the pickle switch on your yolk to adjust the trim. Regards Nixon Thomas
December 16, 201114 yr Author Hi Dario and Nixon,Thanks for confirming that the Saitek trim wheel can be reset during a pause in FSX to the correct value as set by the AP, and the idea of removing the USB plug if required to ensure that the trim wheel is out of circuit when it wouldn't function correctly (such as when using the NGX).Thanks, Bruce. ASEL, Instrument. KBJC, Colorado.
December 17, 201114 yr Do you want to try the other version of the script Jim?Sure, I'll test it for you....it works just like the throttle, once you switch off the AP the trim will remain where the AP left it until there's an input from the pilot.That is exactly what it does. I don't used this trim wheel on the NGX but this is the main problem with my GA aircraft. Jim Cranford
December 17, 201114 yr Sure, I'll test it for you.Ok, I'll need to tweak it cause as it stands, it keeps triming the A/C with the AP on. Shouldn't take long to fix. Hold on
December 17, 201114 yr Sure, I'll test it for you. HereYou'll need to calibrate the script for your hardware:1.- Fire up FSX ,then open FSUIPC and click in the Axis Assignment tab.Now move your axis all the way to it's minimum detent and noteNote down the minimum axis output for your device. Mine is -163842.- Repeat for the max axis detent. Move it all the way to it's maximum and note down the max output:3.- Open the trimNGXTimer.lua with a text editor and edit the MIN_AXIS and MAX_AXIS constants to match your hardware output. Note that I have them inverted, do so too if you need to invert the axis.4.- Save the trimNGXTimer.lua to the Modules folder5.- Restart FSX and assign your axis to the "Lua Value trimNGXTimer" controlRight now it will ignore axis inputs with AP on, which I guess is not correct, since you could have no pitch mode active and then you should be able to trim the plane even with AP on, but I have no way to read the active modes. Maybe when the SDK is released there will be a way to access it from Lua
December 18, 201114 yr Dazz, first of all I would like to report that your first LUA was not at fault for what was going on with my sim.It was indeed the other script causing the issues and for some reason it decided to wait until that moment to go haywire.With that said, I am unable to get either of yours to work with the Saitek TW.Like I said before I'm still a little green when it comes to LUA so it may be something I'm doing wrong.Both seems to have no effect on the trim wheel after being assigned per your instructions. Jim Cranford
December 18, 201114 yr Dazz, first of all I would like to report that your first LUA was not at fault for what was going on with my sim.It was indeed the other script causing the issues and for some reason it decided to wait until that moment to go haywire.With that said, I am unable to get either of yours to work with the Saitek TW.Like I said before I'm still a little green when it comes to LUA so it may be something I'm doing wrong.Both seems to have no effect on the trim wheel after being assigned per your instructions.Is your FSUIPC4.dll up to date? you need V4.6 or later to run Lua scriptsThis is the last versionhttp://fsuipc.simflight.com/beta/FSUIPC4751a.zipas found in Pete's forum here: http://forum.simflight.com/topic/66139-updated-modules/If it's up to date, is there some error logged in your FSUIPC4.log?
December 18, 201114 yr Author Is there an option to display a textual value of what the trim is set to in FSX? I think that some of the variables are available to be displayed in the text window, I could be wrong- but if it's possible I'm wondering if the trim value can be displayed (so that I could synchronize a hardware trim wheel to the same value as the AP has set it to, after disconnecting the AP and pausing the sim).Thanks, Bruce. ASEL, Instrument. KBJC, Colorado.
December 18, 201114 yr Is there an option to display a textual value of what the trim is set to in FSX? I think that some of the variables are available to be displayed in the text window, I could be wrong- but if it's possible I'm wondering if the trim value can be displayed (so that I could synchronize a hardware trim wheel to the same value as the AP has set it to, after disconnecting the AP and pausing the sim).Thanks, Bruce. This should display the trim on-screenJust assign a key or button to it in FSUIPC using the Lua displayElvTrim control. If you have buttons to map to the trim, you can use Dan's method to map them to the trim via FSX's Controls, and then this script in FSUIPC so that you can see the actual value while you trim the plane
December 19, 201114 yr Is your FSUIPC4.dll up to date? you need V4.6 or later to run Lua scriptsIf it's up to date, is there some error logged in your FSUIPC4.log?Sorry Dazz for not answering your question.Yes I'm using the lastest version 4.749f of FSUIPC and honestly, I never checked the log.It's all good because I never intend to use the TW with the NGX. Jim Cranford
December 19, 201114 yr Author Hi dazz,Thanks, you sure do have some programming abilities :)So, just to make sure I understand. Assigning a key/button to it will toggle the trim text on and off, which while toggled on will show me the value of "trim" for the a/c, whether controlled manually or by an AP. So, if the sequence is1 Trim controlled by AP2 Toggle the trim text on, note the value3 APturned off, but since the manual trim is not yet touched, it has no effect4 Pause the dim5 Manually adjust trim, trim text now shows a/c trim controlled by the manual trim6 Adjust manual trim to show trim text as the reference value as shown above in 27 Toggle trim text off8 Continue flying with seamless transition to manual trim (other than pausing the sim, which is not too realistic :)Do I have that right?Thanks again,Bruce. ASEL, Instrument. KBJC, Colorado.
December 19, 201114 yr Hi dazz,Thanks, you sure do have some programming abilities :)So, just to make sure I understand. Assigning a key/button to it will toggle the trim text on and off, which while toggled on will show me the value of "trim" for the a/c, whether controlled manually or by an AP. So, if the sequence is1 Trim controlled by AP2 Toggle the trim text on, note the value3 APturned off, but since the manual trim is not yet touched, it has no effect4 Pause the dim5 Manually adjust trim, trim text now shows a/c trim controlled by the manual trim6 Adjust manual trim to show trim text as the reference value as shown above in 27 Toggle trim text off8 Continue flying with seamless transition to manual trim (other than pausing the sim, which is not too realistic :)Do I have that right?Thanks again,Bruce.The displayElvTrim script shows the current value of the trim for 5 seconds. But I think I got confused. You wanted the FSX trim for your GA p`lanes? because that only shows the NGX trim
December 19, 201114 yr Sorry Dazz for not answering your question.Yes I'm using the lastest version 4.749f of FSUIPC and honestly, I never checked the log.It's all good because I never intend to use the TW with the NGX.Ok, I know why it was not working. I forgot a step in the installation:Add the Auto section in the FSUIPC4.ini for the A/C or profile:I use a profile called NGX:[Auto.NGX]0=Lua trimNGXTimer for a particular model, for example the 738 in AA livery: [Auto.Boeing 737-823NGX American Airlines Winglets]0=Lua trimNGXTimer
Create an account or sign in to comment