Jump to content
The simFlight Network Forums

severniae

Members
  • Posts

    23
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by severniae

  1. Hi, I have an issue in FSUIPC7, latest version.

    I use a number of Lua files to control various things on the PMDG DC6 - however my files don't appear to work.

    I've notced that it is renaming the LUA key presses I've set to the below each time FSUIPC loads - it never used to do this...

    Please advice apprecaited.. 

    Each one that says 'Preset Control' should be the name of a Lua..

     

    [Keys.Douglas_DC6]
    63=N81,10,L70:R,0     -{lctl+Q: Press=Preset Control }-
    64=N81,9,L54:R,0     -{lshift+Q: Press=Lua DC6_RPM_24 }-
    66=N81,11,L56:R,0     -{lctl+lshift+Q: Press=Lua DC6_RPM_CONTROL }-
    78=N69,10,L57:R,0     -{lctl+E: Press=Lua DC6_SOF }-
    80=N82,11,L71:R,0     -{lctl+lshift+R: Press=Preset Control }-
    88=N84,9,L55:R,0     -{lshift+T: Press=Lua DC6_RPM_26 }-
    191=N87,9,L74:R,0     -{lshift+W: Press=Preset Control }-
    193=N87,10,L75:R,0     -{lctl+W: Press=Preset Control }-
    195=N87,11,L77:R,0     -{lctl+lshift+W: Press=Preset Control }-
    197=N82,9,L115:R,0     -{lshift+R: Press=Preset Control }-
    214=N85,10,L67:R,0     -{lctl+U: Press=Preset Control }-
    216=N85,11,L78:R,0     -{lctl+lshift+U: Press=Preset Control }-
    223=N73,9,L84:R,0     -{lshift+I: Press=Preset Control }-
    224=N73,10,L83:R,0     -{lctl+I: Press=Preset Control }-
    226=N73,11,L85:R,0     -{lctl+lshift+I: Press=Preset Control }-
    228=N79,9,L87:R,0     -{lshift+O: Press=Preset Control }-
    230=N79,10,L88:R,0     -{lctl+O: Press=Preset Control }-
    232=N79,11,L89:R,0     -{lctl+lshift+O: Press=Preset Control }-
    236=N76,9,L91:R,0     -{lshift+L: Press=Preset Control }-
    238=N76,11,L92:R,0     -{lctl+lshift+L: Press=Preset Control }-
    242=N75,9,L54:R,0     -{lshift+K: Press=Lua DC6_RPM_24 }-
    245=N75,10,L94:R,0     -{lctl+K: Press=Preset Control }-
    249=N74,9,L96:R,0     -{lshift+J: Press=Preset Control }-
    251=N74,10,L97:R,0     -{lctl+J: Press=Preset Control }-
    253=N74,11,L98:R,0     -{lctl+lshift+J: Press=Preset Control }-
    257=N72,9,L100:R,0     -{lshift+H: Press=Preset Control }-
    259=N72,10,L102:R,0     -{lctl+H: Press=Preset Control }-
    261=N72,11,L103:R,0     -{lctl+lshift+H: Press=Preset Control }-
    265=N71,9,L105:R,0     -{lshift+G: Press=Preset Control }-
    267=N71,10,L106:R,0     -{lctl+G: Press=Preset Control }-
    269=N71,11,L107:R,0     -{lctl+lshift+G: Press=Preset Control }-
    273=N77,9,L109:R,0     -{lshift+M: Press=Preset Control }-
    275=N77,10,L110:R,0     -{lctl+M: Press=Preset Control }-
    277=N77,11,L111:R,0     -{lctl+lshift+M: Press=Preset Control }-
    281=N78,10,L113:R,0     -{lctl+N: Press=Preset Control }-
    283=N78,9,L101:R,0     -{lshift+N: Press=Preset Control }-
    285=N67,9,L59:R,0     -{lshift+C: Press=Lua DC6_WATCHENGINES }-
    289=N90,10,L58:R,0     -{lctl+Z: Press=Lua DC6_SON }-
    290=N83,9,L112:R,0     -{lshift+S: Press=Preset Control }-
    291=N83,10,L79:R,0     -{lctl+S: Press=Preset Control }-
    293=N90,9,L72:R,0     -{lshift+Z: Press=Preset Control }-
    296=N88,10,L86:R,0     -{lctl+X: Press=Preset Control }-
    298=N88,9,L82:R,0     -{lshift+X: Press=Preset Control }-
    302=N65,10,L81:R,0     -{lctl+A: Press=Preset Control }-
    304=N65,9,L80:R,0     -{lshift+A: Press=Preset Control }-
    306=N68,10,L95:R,0     -{lctl+D: Press=Preset Control }-
    309=N68,9,L108:R,0     -{lshift+D: Press=Preset Control }-
    311=N70,10,L93:R,0     -{lctl+F: Press=Preset Control }-
    314=N70,9,L99:R,0     -{lshift+F: Press=Preset Control }-
    316=N86,10,L90:R,0     -{lctl+V: Press=Preset Control }-
    318=N86,9,L104:R,0     -{lshift+V: Press=Preset Control }-
     

  2. Hi, 

    I have a strange problem..

    I'm finding with some scripts, ones that appear to work fine, randomly...don't..

    For example, I have one script that's only function is to call two other scripts - sometimes, when I load this script, it functions, calls the other two scripts in turn and they load fine. Other times, it just exits for apparently no reason before completing its tasks.. the same goes for a few other scripts I am using...

    Example script:

    "

    function CallScripts()
    ipc.sleep(2000)
    ipc.runlua("DC6_MP_CONTROL")
    ipc.sleep(50)
    ipc.runlua("DC6_RPM_CONTROL")
    ipc.sleep(1000)
    end

    CallScripts()
    ipc.sleep(250)
    ipc.exit()

    "

    Here is the output for the log - same script ran twice - one time it works, the next not, no change to the scripts between executions...:

    ********* LUA: "DC6_WATCHENGINES" Log [from FSUIPC version 7.2.1] *********
      1872344 System time = 01/07/2021 00:13:10, Simulator time = 13:15:44 (12:15Z)
      1872344 LUA: beginning "C:\FSUIPC7\DC6_WATCHENGINES.lua"
      1872344 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:8
      1872360 LUA: Global: ipcPARAM = 0
      1872391 >>> Thread forced exit (ipc.exit or os.exit) <<<
      1872391 System time = 01/07/2021 00:13:10, Simulator time = 13:15:44 (12:15Z)
    ********* LUA execution terminated: Log Closed *********

    ********* LUA: "DC6_WATCHENGINES" Log [from FSUIPC version 7.2.1] *********
      1872469 System time = 01/07/2021 00:13:10, Simulator time = 13:15:45 (12:15Z)
      1872469 LUA: beginning "C:\FSUIPC7\DC6_WATCHENGINES.lua"
      1872469 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:8
      1872469 LUA: Global: ipcPARAM = 0
      1872485 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:2
      1872500 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:10
      1872516 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:4 fn: CallScripts
      1872657 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:6 fn: CallScripts
      1872797 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:8 fn: CallScripts
      1872813 LUA: C:\FSUIPC7\DC6_WATCHENGINES.lua:12
      1872828 >>> Thread forced exit (ipc.exit or os.exit) <<<
      1872828 System time = 01/07/2021 00:13:11, Simulator time = 13:15:45 (12:15Z)
    ********* LUA execution terminated: Log Closed *********

     

  3. Hi,

    For some aircraft, I have to use the setting THROTTLE1_AXIS_SET_EX1 to control the throttle. The problem appears to be that I can't set a dead zone at the start of the throttle.

    I understand that I could do this using lua in fsuipc. I have some experience in Lua, I have written some basic scripts to help with automation in the cockpit etc...

    But I'm not certain of what I should do to execute throttle operation in FSUIPC - nor how to limit the throttle's travel.

    Would someone mind posting some example code that I may work on as a basis?

    Thanks in advance,

    James

  4. Hi,

     

    I'm using Prepar3d V5 and I've set a joystick command to increase the simulation rate, and one to decrease. 

    The problem I have is that in VR, I often overshoot the number of times to press decr, and then end up accidentally in half speed wondering what has happened.

    Is there any way to assign a command to just set the simulation rate to 1?

    Thanks,

    James

  5. Right on the money Pete! I edited how much I am moving the throttles and hey presto! They appear to be working as planned. I'm tweaking a little so they don't overrun but so far so good!

    I will have one issue once I plug the throttles back in - in that using "ipc.writeUW(0x310A, 0xC0C0)" won't work with this script as it would block the throttle settings I'm trying to change.

    Is there an alternative that would prevent my moving the physical throttles (ch quadrent) from effecting the script in the sim? If so great if not I'll have to get inventive!

    Cheers, and thanks for all the help!

    James

  6. Ok so I just did a quick test. 

    Here is the full script I ran..

    Quote

      
    function doit()
      go = 1
      
        if go == 1 then
      
        MP = 250
        var1 = ipc.readLvar("L:dc6_325_obj")
        var2 = 0x088C
        var3 = 66420
        
       ipc.writeUW(0x310A, 0xC0C0)             -- Turn Throttle 1 to 4 inputs OFF

        MP_IN = var1
        ipc.log("MP IN IS "..MP_IN, 4)
        ipc.sleep(2000)

        ipc.log("MP IS "..MP, 4)
        ipc.sleep(2000)

        if MP_IN < MP - 0.1 then
           mp_delta = 8.5                        -- Increase Throttle 
        end

        if MP_IN > MP + 0.1 then
           mp_delta = -8.5                       -- Decrease Throttle 
        end

        if MP_IN > MP - 0.1 and MP_IN < MP + 0.1 then
           mp_delta = 0                                   
        end
        
        THR_IN = ipc.readSW(var2) * 2 - 16384
        ipc.log("THR IN IS "..THR_IN, 4)
        ipc.sleep(2000)
         THR_OUT = THR_IN + mp_delta
         ipc.log("THR OUT IS "..THR_OUT, 4)
         ipc.sleep(2000)
         ipc.control(66420, THR_OUT)      

      end   
      end
      
      on = 1
      while on == 1 do
        doit()
        end

    Here is the log output:

    Quote

    ********* LUA: "DC6PowerSet" Log [from FSUIPC version 4.974] *********
      1317797 System time = 23/08/2018 14:09:41, Simulator time = 13:40:30 (13:40Z)
      1317797 LUA: beginning "C:\FILES\P3D\Modules\DC6PowerSet.lua"
      1317812 LUA: MP IN IS 77.360907599372
      1319828 LUA: MP IS 250
      1321843 LUA: THR IN IS -15074
      1323859 LUA: THR OUT IS -15065.5
      1325875 LUA: MP IN IS 75.813360378348
      1327890 LUA: MP IS 250
      1329906 LUA: THR IN IS -15074
      1331922 LUA: THR OUT IS -15065.5
      1333953 LUA: MP IN IS 75.442850121872
      1335968 LUA: MP IS 250
      1337984 LUA: THR IN IS -15074
      1339281 >>> Thread killed <<<
      1339281 System time = 23/08/2018 14:10:02, Simulator time = 13:40:51 (13:40Z)
    ********* LUA execution terminated: Log Closed *********

    And finally here is a log trace with debugging enabled, in case helpful:

    Quote

    ********* LUA: "DC6PowerSet" Log [from FSUIPC version 4.974] *********
      1445859 System time = 23/08/2018 14:11:49, Simulator time = 13:42:33 (13:42Z)
      1445859 LUA: beginning "C:\FILES\P3D\Modules\DC6PowerSet.lua"
      1445875 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:42
      1445875 LUA: Global: ipcPARAM = 0
      1445875 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:2
      1445875 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:44
      1445875 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:45
      1445875 LUA: Global: on = 1
      1445875 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:46
      1445890 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:3 fn: doit
      1445890 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:5 fn: doit
      1445890 LUA: Global: go = 1
      1445890 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:7 fn: doit
      1445906 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:8 fn: doit
      1445906 LUA: Global: MP = 250
      1445906 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:9 fn: doit
      1445906 LUA: Global: var1 = 75.323935619902
      1445906 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:10 fn: doit
      1445906 LUA: Global: var2 = 2188
      1445922 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:12 fn: doit
      1445922 LUA: Global: var3 = 66420
      1445953 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:14 fn: doit
      1445953 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:15 fn: doit
      1445953 LUA: Global: MP_IN = 75.323935619902
      1445968 LUA: MP IN IS 75.323935619902
      1445968 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:16 fn: doit
      1447984 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:18 fn: doit
      1447984 LUA: MP IS 250
      1447984 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:19 fn: doit
      1450000 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:21 fn: doit
      1450000 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:22 fn: doit
      1450000 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:25 fn: doit
      1450000 LUA: Global: mp_delta = 8.5
      1450000 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:29 fn: doit
      1450000 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:33 fn: doit
      1450000 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:34 fn: doit
      1450000 LUA: Global: THR_IN = -15074
      1450015 LUA: THR IN IS -15074
      1450015 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:35 fn: doit
      1452031 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:36 fn: doit
      1452031 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:37 fn: doit
      1452031 LUA: Global: THR_OUT = -15065.5
      1452031 LUA: THR OUT IS -15065.5
      1452031 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:38 fn: doit
      1454047 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:39 fn: doit
      1454078 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:42 fn: doit
      1454078 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:45
      1454078 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:46
      1454078 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:3 fn: doit
      1454078 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:5 fn: doit
      1454093 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:7 fn: doit
      1454093 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:8 fn: doit
      1454093 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:9 fn: doit
      1454109 LUA: Global: var1 = 75.323766866178
      1454109 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:10 fn: doit
      1454109 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:12 fn: doit
      1454140 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:14 fn: doit
      1454140 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:15 fn: doit
      1454140 LUA: Global: MP_IN = 75.323766866178
      1454156 LUA: MP IN IS 75.323766866178
      1454156 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:16 fn: doit
      1456172 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:18 fn: doit
      1456172 LUA: MP IS 250
      1456172 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:19 fn: doit
      1458187 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:21 fn: doit
      1458187 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:22 fn: doit
      1458187 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:25 fn: doit
      1458187 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:29 fn: doit
      1458203 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:33 fn: doit
      1458203 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:34 fn: doit
      1458203 LUA: THR IN IS -15074
      1458203 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:35 fn: doit
      1460234 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:36 fn: doit
      1460234 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:37 fn: doit
      1460234 LUA: THR OUT IS -15065.5
      1460234 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:38 fn: doit
      1462250 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:39 fn: doit
      1462265 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:42 fn: doit
      1462281 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:45
      1462281 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:46
      1462281 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:3 fn: doit
      1462281 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:5 fn: doit
      1462297 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:7 fn: doit
      1462297 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:8 fn: doit
      1462297 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:9 fn: doit
      1462297 LUA: Global: var1 = 75.323138770532
      1462312 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:10 fn: doit
      1462312 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:12 fn: doit
      1462343 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:14 fn: doit
      1462359 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:15 fn: doit
      1462359 LUA: Global: MP_IN = 75.323138770532
      1462359 LUA: MP IN IS 75.323138770532
      1462359 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:16 fn: doit
      1464375 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:18 fn: doit
      1464375 LUA: MP IS 250
      1464375 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:19 fn: doit
      1466390 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:21 fn: doit
      1466390 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:22 fn: doit
      1466390 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:25 fn: doit
      1466390 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:29 fn: doit
      1466390 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:33 fn: doit
      1466406 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:34 fn: doit
      1466406 LUA: THR IN IS -15074
      1466406 LUA: C:\FILES\P3D\Modules\DC6PowerSet.lua:35 fn: doit
      1466828 >>> Thread killed <<<
      1466828 System time = 23/08/2018 14:12:10, Simulator time = 13:42:54 (13:42Z)
    ********* LUA execution terminated: Log Closed *********

    Hopefully that gives some more information to be working with...

  7. Hi All,

    So I'm trying the quoted below which is an excerpt from a script that I have put together (with help from others), that should read the current manifold pressure value via the gauge in the cockpit, and then either increase or decrease the throttle until the desired manifold pressure is reached. For some reason what I'm expecting to happen, isn't...

    Just to give  a little background on the script:

    MP is the desired Manifold pressure,  in this case '250' represents a manifold pressure, of 25'. PMDG stores the manifold pressure in object 325 (for engine one), so if the gauge was reading 35' - the value in "L:dc6_325_obj" would show as '350' (probably with a lot of decimal places!)

    var2 is reading the current position of the set throttle. I've set all sorts of display readouts so I can see what the script is seeing as the values. I've found that this value has a range from 0 - 16384.

    var3 is the control number from the throttle. Through experimentation I've figured that this setting has a range from -16384 for throttle closed, to 16384 for full open. So to try to pass the correct value to set the throttle, I'm having to subtract 16384 and then double the inputted value. I think this is the correct way to do it, but I may be well short of the mark..

    What I'm seeing happen, is that when I engage the script the throttle just seems to reduce to 0 and then does nothing... I can't get it to do the gradual increase as it should on the script. 

    If I remove the " * 2 - 16384" from THR_IN then every time the throttle just makes big jumps forward until the throttle is at full power...

    Should the below script work? or have I fundamentally misunderstood something?

    Thanks,

    James

     

    Quote

     

      if go == 1 then
      
        MP = 250
        var1 = ipc.readLvar("L:dc6_325_obj")
        var2 = 0x088C
        var3 = 66420
        
       ipc.writeUW(0x310A, 0xC0C0)             -- Turn Throttle 1 to 4 inputs OFF

        MP_IN = var1
        ipc.display("MP IN IS "..MP_IN, 4)
        ipc.sleep(2000)

        ipc.display("MP IS "..MP, 4)
        ipc.sleep(2000)

        if MP_IN < MP - 0.1 then
           mp_delta = 8.5                        -- Increase Throttle 
        end

        if MP_IN > MP + 0.1 then
           mp_delta = -8.5                       -- Decrease Throttle 
        end

        if MP_IN > MP - 0.1 and MP_IN < MP + 0.1 then
           mp_delta = 0                                   
        end
        
        THR_IN = ipc.readSW(var2) * 2 - 16384
        ipc.display("THR IN IS "..THR_IN, 4)
        ipc.sleep(2000)
         THR_OUT = THR_IN + mp_delta
         ipc.display("THR OUT IS "..THR_OUT, 4)
         ipc.sleep(2000)
         ipc.control(66420, THR_OUT)      

      end            

     

     

  8. Just as a note - setting the throttle axis does seem to work when set using 'direct' within FSUIPC, it's only if you need to separate the throttles you can't. (see attached images)

     

    Are the settings in those images a 'control' or can they be influenced by an offset?

    Apologies if I'm not hitting the right terms, only really started playing with scripts and these settings over the last few months.

    Thanks,

    James

    EDIT: just tried "ipc.control(65820, 10000)" and it doesn't appear to do anything in the sim.... Though I guess I have missed something,.,

     

    Thrconf1.PNG

    Thrconf2.PNG

  9. Thanks for the quick reply Pete!

    I'm quite new to this, how would I get the list of controls? What I'll need for the script to work is the range of the control, and then I can increase or decrease the throttle depending on the manifold pressure readout.. I'm creating an 'alternate' flight engineer - the one PMDG created is great but i'm creating scripts so I can call out and set specific manifold pressures/RPMs!

  10. Hi,

    I'm trying to use a lua script to do some throttle setting for the PMDG DC-6 but I have a problem.

    If I set the individual throttles by passing a value to, for instance 0x0924 - nothing happens. This follows the fact that if I set the throttles within FSUIPC configuration itself they don't work, which has been confirmed by PMDG support. However it does work if I set the 'Throttle' to an axis within FSUIPC. 

    I'm trying to see if I can use this 'throttle' axis in my lua script instead of the individual throttles, which isn't ideal for what I'm doing but better than nothing. I just can't find the right offset. I can move the throttles using the axis with 'throttle' set using the FSUIPC configuration, but I just can't figure out an offset to use.

    Could someone help me?

    Thanks in advance,

    James

    • Like 1
  11. Hi All,

    I've a problem with FSUIPC. I had it installed fine and was working perfectly. I didn't use my FSX computer for some time (since before the problem with the certificate) so when finally booting up my PC for the first time to load FSX in a while, I updated all software, including FSUIPC to the latest versions.

    Now that first flight went just fine, all worked as expected. The problem came the second time I tried to use FSX. I have my ailerons and toe brakes assigned via FSUIPC and not through the FSX controls. When I try to move an FSUIPC assigned axis, nothing moves. But when added via FSX it does work. The only method I've found to make it work, is to reinstall FSUIPC before each flight.

    I've no idea what is going on so could anyone help me please?

    Thanks,

  12. Hi Pete,

    Many thanks for your prompt responce.

    In answer to questions 1&2 - Its how the manual for the installation of the Eaglesoft Citation X describes to setup the throttles for their FADEC system to work. And without the 'filter' option set when set to idle the throttles disappear from view in the virtual VC!

    I'll try some tests tonight to see what reproduces the problem and see if I can send you the relevant files.

    Many thanks,

    James

  13. I have a saitek pro flight yoke. I'm setting the throttles (fist and second levers on the quadrent thing) to be my throttle 1 and 2 - with the reverse part set to reverse.

    Im doing this for a proper configuration with the Eaglesoft Citation X - Whenever I load the sim if I move the throttle, the throttle in game does not move. This is the same for default aircraft and addon aircraft alike

    Thanks,

    James

  14. ********* FSUIPC4, Version 4.827 by Pete Dowson *********

    User Name="********r"

    User Addr="******@**.com"

    FSUIPC4 Key is provided

    WIDEFS7 not user registered, or expired

    Running inside FSX on Windows 7

    Module base=61000000

    312 System time = 25/06/2012 21:53:59

    312 FLT path = "C:\******\"

    343 Trying to connect to SimConnect Acc/SP2 Oct07 ...

    343 FS path = "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\"

    593 LogOptions=00000000 00000001

    593 Wind smoothing fix is fully installed

    593 G3D.DLL fix attempt installed ok

    593 SimConnect_Open succeeded: waiting to check version okay

    593 Trying to use SimConnect Acc/SP2 Oct07

    3073 Running in "Microsoft Flight Simulator X", Version: 10.0.61637.0 (SimConnect: 10.0.61259.0)

    3073 Initialising SimConnect data requests now

    3073 FSUIPC Menu entry added

    3089 C:***********es\Df1.FLT

    3089 C:\*********R

    200633 Weather Mode now = Custom

    200633 C:\Users\************Roaming\Microsoft\FSX\Previous flight.FLT

    210601 System time = 25/06/2012 21:57:29

    210601 *** FSUIPC log file being closed

    Average frame rate for running time of 25 secs = 15.7 fps

    G3D fix: Passes 18007, Null pointers 0, Bad pointers 0, Separate instances 0

    Memory managed: 3 Allocs, 3 Freed

    ********* FSUIPC Log file closed ***********

  15. [General]

    UpdatedByVersion=4827

    History=X2TV4VP0JXUEBAI5DIBW5

    MouseWheelMove=No

    MouseWheelTrim=No

    MouseWheelTrimSpeed=1

    JoystickTimeout=20

    PollGFTQ6=Yes

    BlankDisplays=No

    FixControlAccel=No

    FixMachSpeedBug=No

    DeleteVehiclesForAES=Yes

    AutoScanDevices=Yes

    VisibilityOptions=No

    OneCloudLayer=No

    CloudTurbulence=No

    CloudIcing=No

    GenerateCirrus=No

    SuppressCloudTurbulence=No

    MaxIce=-4

    MinIce=-1

    UpperWindGusts=No

    SuppressWindTurbulence=No

    SuppressWindVariance=No

    WindTurbulence=No

    TurbulenceRate=1.0,5.0

    TurbulenceDivisor=20,20,40,40

    SuppressAllGusts=No

    MaxSurfaceWind=0

    WindLimitLevel=200

    WindDiscardLevel=400

    WindAjustAltitude=No

    WindAjustAltitudeBy=2000

    SmoothBySimTime=No

    WindSmoothing=No

    WindSmoothness=2

    WindSmoothAirborneOnly=Yes

    PressureSmoothness=0

    TemperatureSmoothness=0

    DisconnTrimForAP=No

    ZeroElevForAPAlt=No

    ThrottleSyncAll=No

    WhiteMessages=No

    ShowPMcontrols=No

    SpoilerIncrement=512

    MagicBattery=No

    RudderSpikeRemoval=No

    ElevatorSpikeRemoval=No

    AileronSpikeRemoval=No

    ReversedElevatorTrim=No

    ClockSync=No

    ClockSyncMins=5

    ClearWeatherDynamics=No

    OwnWeatherChanges=No

    TimeForSelect=4

    LoadFlightMenu=No

    LoadPlanMenu=No

    PauseAfterCrash=No

    BrakeReleaseThreshold=75

    SaveDataWithFlights=No

    ZapSound=firework

    ShortAircraftNameOk=No

    UseProfiles=Yes

    EnableMouseLook=No

    AxesWrongRange=No

    TCASid=Flight

    TCASrange=40

    AxisCalibration=No

    DirectAxesToCalibs=No

    ShowMultilineWindow=Yes

    SuppressSingleline=No

    SuppressMultilineFS=No

    AxisIntercepts=No

    DontResetAxes=No

    InitDelay=0

    GetNearestAirports=No

    WeatherReadFactor=2

    WeatherRewriteSeconds=1

    CustomWeatherModify=No

    SimConnectStallTime=1

    LuaRerunDelay=66

    FSVersionUsed="Microsoft Flight Simulator X",10.0.61637.0

    SimConnectUsed=10.0.61259.0

    Console=No

    [JoyNames]

    AutoAssignLetters=No

    0=Saitek Pro Flight Rudder Pedals

    0.GUID={BE1A8FA0-B56D-11E1-8001-444553540000}

    1=Saitek Pro Flight Yoke

    1.GUID={BE1A8FA0-B56D-11E1-8002-444553540000}

    [buttons]

    ButtonRepeat=20,10

    1=R1,20,C65966,0

    2=U1,20,C65967,0

    3=R1,21,C65971,0

    4=U1,21,C65972,0

    [AutoSave]

    Next=1

    Interval=60

    Files=10

    SaveOnGround=No

    AutoSaveEnabled=No

    [GPSout]

    GPSoutEnabled=No

    [GPSout2]

    GPSoutEnabled=No

    [WideServer]

    WideFSenabled=Yes

    [sounds]

    Path=C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Sound\

    Device1=Primary Sound Driver

    Device2=AMD HDMI Output (AMD High Definition Audio Device)

    Device3=Realtek Digital Output (Realtek High Definition Audio)

    Device4=Realtek Digital Output(Optical) (Realtek High Definition Audio)

    [Axes]

    0=1Z,256,D,9,0,0,0

    1=1U,256,D,10,0,0,0

    [JoystickCalibration]

    AllowSuppressForPFCquad=Yes

    ExcludeThrottleSet=Yes

    ExcludeMixtureSet=Yes

    ExcludePropPitchSet=Yes

    SepRevsJetsOnly=No

    ApplyHeloTrim=No

    UseAxisControlsForNRZ=No

    FlapsSetControl=0

    FlapDetents=No

    ReverserControl=66292

    Reverser1Control=66422

    Reverser2Control=66425

    Reverser3Control=66428

    Reverser4Control=66431

    MaxThrottleForReverser=256

    AileronTrimControl=66731

    RudderTrimControl=66732

    CowlFlaps1Control=66162

    CowlFlaps2Control=66163

    CowlFlaps3Control=66164

    CowlFlaps4Control=66165

    SteeringTillerControl=0

    MaxSteerSpeed=60

    Throttle1=-15603,-512,512,16000/40

    Throttle2=-15603,-512,512,16000/40

  16. Hi,

    I have a registered version of FSUIPC and have had the throttles set up to workth through FSUIPC and its worked flawlessly for over a week now.

    I had a FSX crash and now its all gone wrong. FSUIPC wont let the throttles work. When I move the throttle in the sim it stays still.

    When I set FSX to handle the axis the throttle starts working again but I want to use FSUIPC.

    Help please!

    James Walker

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