Jump to content
The simFlight Network Forums

bpcw001

Members
  • Posts

    34
  • Joined

  • Last visited

bpcw001's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Ok, I understand. Thanks. Apparently, L-M did not understand. ☹️
  2. Hi, I am sorely missing the „fix control acceleration“ functionality in P3D v4. I have very misbehaving heading bugs and radio frequencies in certain addons that could well use this FSUIPC functionality. Any reasons it is no longer around in the FSUIPC versions for P3Dv4? Any other way of getting rid of that (IMHO stupid) control acceleration in P3Dv4? Thanks
  3. Hallo Pete, thanks for your reply. The start_pump_check () function is called as follows: In file NGX.lua if ipcPARAM == 13 then start_pump_check () end NGX lua with param 13 is assigned to a controller button press. Seems like event.offset() is the way to go. I knew that there had to be a better way :smile: Based on how the event.offset() works (being active when the plugin loads, thus executing the event handlers right away if events are fired), I'd have to add some logic to only do something when I actually want the watchdog to run, since I don't want to have it start automatically on plugin loading, but only on controller button press. Thanks
  4. Hi, I'd like to write a watchdog for the PMDG NGX center fuel tank pumps that turns them off once the "low press" annunciation comes on. The pump check shall start when a certain button on a controller is pressed. I do know all the required offsets and controls I need in order to achieve this and have the function start at a controller's button press, but I am unsure as to how this might be realized best in LUA code. I was thinking about a simple loop that checks for the respective condition every 10 seconds or so, basically: function start_pump_check() while (condition not met) do -- get data if (data meets condition) then -- turn pumps off break end ipc.sleep(10000) end end However, I wonder if there is any better alternative or any best practice on how to handle such things. Any hints? Thank you bpcw001
  5. Hi Pete, that's fine. I don't need the LUA's any more since what I wanted is included in FSUIPC by default, so I will settle for what's provided. Will try 4.909c for checking the reverser problem. Regards Dave
  6. sure. Please also have a look at my post #21. Thanks Dave
  7. Hi Pete, I discovered another thing in connection with FSUIPC's own throttle sync, not the lua stuff: When assigning a controller axis to be the reverser axis (FSUIPC -> axis assignment, move axis and choose "send direct to FSUIPC calibration", then "reverser"), this controller axis works ok as long as the throttle sync is not active, i. e. when properly calibrated, the controller axis will move from throttles idle to full reverse. However, then throttle sync is active, the reverser axis just behaves like a normal throttle axis, i. e. it moves all throttles from max power to idle. Can you observe that behavior too? Regards Dave
  8. Hi Pete, OK, I haven't had any crashes with the 4.909b version this weekend. The controls respond a little jerky now which probably is due to the fact that you put in some more critical sections for thread sync. Sometimes, the system seems to "think" for a split second before the throttles react to new input from the controllers. However, like I said, no crashes. Regards Dave
  9. I'll try the new version this weekend. Regards Dave
  10. Hi Pete, I got a crash again. Version 4.909a, although it says 4.909 in the crash log: Faulting application name: fsx.exe, version: 10.0.61472.0, time stamp: 0x475e17d3 Faulting module name: FSUIPC4.dll, version: 4.9.0.9, time stamp: 0x51ee3e7d Exception code: 0xc0000005 Fault offset: 0x000615ef Faulting process id: 0xee8 Faulting application start time: 0x01ce8972bfeb5a07 Faulting application path: C:\FS\FSX\fsx.exe Faulting module path: C:\FS\FSX\Modules\FSUIPC4.dll Report Id: 90703c92-f566-11e2-906a-f46d040055e1 Happened when moving throttles, then pressing button to activate sync on my lua scripts, then moving throttles again. Regards Dave
  11. Hi Pete, I've started trying 4.909a tonight. I even added more lua files in the same way to sync props and mixture axes in order to increase the probability of a crash. So far I could yank the axis controls any way I want with no crash. Let's see how this is going after some more stress testing. I also had a quick look into the controls section and found the Throttlesync toggle/on/off assignments. However, I didn't find anything for mixtures and props. Is that in yet? Regards Dave
  12. Very good. Then no coding required from my side at all. You make me a happy man :-)
  13. Thanks for the update. I'll try my best to get some results by the weekend. Work currently keeps me busy and away from simming. That event mechanism sounds good. I remember reading about events in the documentation but I've never paid any closer attention to them so far. I may have an incentive to do so now, since I'm thinking about making a sync functionality for prop and mixture controls as well. Regards Dave
  14. Ok. Thanks a lot. Looking forward to an updated fsuipc.dll :-) If I understand you correctly, fixing the multiple throttle sync will make my LUA scripting obsolete. That would still leave me with the question why the LUA version crashes. Regards Dave
×
×
  • 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.