Jump to content
The simFlight Network Forums

Achoriham

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by Achoriham

  1. Hi Pete, Sorry for the silly question... Would it be (technically) possible to have a switch in the FSUIPC and Wideclient .ini files to start an application 'Minimized'? Asking, because in my cockpit setup there are a few of those needed but badly written programs that do not allow themselves to be started minimized. Of course I can minimize those by hand when FSUIPC started them, but in a cockpit setup it needs opening a VNC app. etc Forgive me if it is a bad or irrelevant question. best regards Achoriham
  2. Of course I tried that, but it seems Enrico is filling up the gaps pretty fast, so a 'safe' area would be much better for me than browsing through the changes at each update. That's a wonderful idea! Will just do that. many thanks and regards Achoriham
  3. Hi Pete, Perhaps a silly question, please ignore it, if it is truly one of that. I've been trying to enhance my 737 logic in Pmsystems and I'm out of free offsets there, including the 'official' free offsets at 66C0-66FF. Somewhere here you have mentioned if some add-on publishers request you, they are provided their own offsets. Would it be possible to know where these areas are? Asking because in case I'd find an area of offsets given to an add-on which I do not use and will never use, I'd be able to use those for my own purpose. thanks in advance Achoriham
  4. Hi Pete, Thanks for the advice. Unfortunately it is a program (which handles Phidgets hardware) that is able to handle the 8 bytes, but the only thing I can define there is either a boolean operation or as it names it: a 'proportional' one, which then sends values to the FSUIPC offset. As I wanted to use a mini-joystick for the purpose (with 2 axes both giving values from 0 to 1000) those numbers are the only thing I can send. Because I can't do anything else in the program but define the FSUIPC offset and the data type. No possibility is there to do anything sequential. thanks and regards Achoriham
  5. Hi Pete, Many thanks for the info. Unfortunately I can't do that. I have a small Phidgets joystick connected to a Phidgets analog port and there I'm using fs2phidgets to handle the offsets. The program can handle 8 byte words but I can't separate the first 4 bytes to send the control no. and the actual parameters in the second one. So I will try to look up another solution for that. best regards Achoriham
  6. Hi, Tried to find it in the 'FSUIPC4 Offsets Status' documentation, but it is not there. So may I inquire what is the actual FSUIPC offset for the Landing lights movements? I mean: LANDING_LIGHT_DOWN 65863 LANDING_LIGHT_HOME 65866 LANDING_LIGHT_LEFT 65864 LANDING_LIGHT_RIGHT 65865 LANDING_LIGHT_UP 65862 thanks in advance Achoriham
  7. Hi Pete, Many thanks again, and my example was wrong indeed, just mixed up the joystick before thinking of the example. Anyway I found that it is much easier to do in lua, so it works now. thanks and regards Potroh
  8. Hi, First of all many thanks to Pete for adding the new bit changing facilities to the new FSUIPC version! Now - if I may - I have a different question: What I want to achieve is the a tiny part of the 737 logic regarding the autopilot disconnect button on the yoke. In the real thing the first press disconnect the autopilot (which I do via the 2040 control PM MCP AP Disc (not 747)), whereas the second press on the same button extinguishes the red A/P disconnected light on the MIP. I tried achieving this with setting a button-flag and another offset for the second press, but it doesn't work. Tried this: 1=PA,2,C1005,3842 2=CP(F+A,2)A,2,C2040,0 3=CP(F-A,2)A,2,Cx090056BA,x20 Can you give me any advice how it can be done? best regards Potroh
  9. Hi Pete, Many thanks for the info (the lesson rather). Starts to be clearer now, but 'Setbits, etc. function would truly solve a lot of problems for me - and hopefully others too. Please think of it when got the time... best regards Potroh
  10. Hi, I need a little help with LUA (once again). I do perfectly understand how to read and write bytes, words, etc in LUA, but I need to change single bits now. Tried to find any info on that in the forum, but didn't find anything. So, how can I read and write values of bits in LUA? please help Potroh
  11. Hi Pete, Many thanks for your help! I used a different offset at 66C0 and 66C2 to drive the hardware levers and write those to the usual throttle offsets, so it is working perfectly now. thanks again Potroh
  12. Hi, If anyone could help me, it would be truly appreciated. I'm trying to regulate the FSX throttle values via a small LUA plugin, as I'm trying to have some fix throttle values for a ship in FSX. I tried this: while 1 do ipc.sleep(50) Throttle1 = ipc.readSW(0x088C) Throttle2 = ipc.readSW(0x0924) if ((Throttle1 < 330) and (Throttle1 < -500)) then Throttle1Out = 0 Throttle2Out = 0 ipc.writeSW(0x088C, Throttle1Out) ipc.writeSW(0x0924, Throttle2Out) else if ((Throttle1 > 330) and (Throttle1 < 5800)) then Throttle1Out = 4000 Throttle2Out = 4000 ipc.writeSW(0x088C, Throttle1Out) ipc.writeSW(0x0924, Throttle2Out) else if ((Throttle1 > 3500) and (Throttle1 < 5800)) then Throttle1Out = 8000 Throttle2Out = 8000 ipc.writeSW(0x088C, Throttle1Out) ipc.writeSW(0x0924, Throttle2Out) else if ((Throttle1 > 5800) and (Throttle1 < 8600)) then Throttle1Out = 12000 Throttle2Out = 12000 ipc.writeSW(0x088C, Throttle1Out) ipc.writeSW(0x0924, Throttle2Out) else if (Throttle1 > 8600) then Throttle1Out = 16300 Throttle2Out = 16300 ipc.writeSW(0x088C, Throttle1Out) ipc.writeSW(0x0924, Throttle2Out) end end end end end end But it doesn't work, value 0 and the max works but nothing in between. What do I do wrong? thanks in advance Potroh
  13. Hi Pete, Many thanks for you invaluable help. Everything is clear now. best regards Potroh
  14. I'm truly sorry for that. When it works as it should, it really makes a difference. Many thanks indeed, now I sort of understand it and it works! The software at least knows logical AND so I was successful to get the right values. My last last question, just if you don't mind: I AND it with 0x0F to get those THR values, but what should I use to get if I wanted to get, say the Hor or Ver channel only? thanks very much Potroh
  15. Hi Pete, I'm truly grateful for your help! The FMA stands for the "Flight Mode Annunciator", those 3 bars on the PFD which show the current mode the AP/AT is commanded. Green letters show the current active mode and white letters the 'armed' ones. Those seem to be vital in the scenario I'm struggling with, because when I need to connect or disconnect the throttle levers, only those indications can provide the proper guidance. In theory PM's MCP/GC is supposed to be writing to the offset 310A to connect or disconnect the throttle, which it does occasionally, but regarding autothrottle phases like 'RETARD' or 'IDLE' it does not do it and more importantly in case of the the Trust-Hold phase right in the middle of takeoff. When you manually move the levers to 40% or so N1 and then press the Toga button, the lever should move forward until it N1 reaches the CDU commanded value and then (above 80kts) THR-HLD is annunciated in the trust channel, when the pilot is able to manually correct the throttle levers. When someone is doing a complete automatic landing, whenever 'IDLE' is annunciated, the levers should automatically move back to idle and then AT should also disconnect automatically. These are the things not modeled there and that's why I need to read the FMA annunciated modes (values in this case) because it is the only way I can instruct the throttle to do whatever it is supposed to. There are many motorized throttles out there nowadays, but none of them are able to do what the real thing does. I just bought a THQ from Revolution-Simproducts, far the best available out there, but the software they provide is very basic in this regard. They use the Opencockpits motor boards to drive the throttle (and trim, etc.) and unfortunately those boards use that famous SIOC script language which is a very simple language, allowing only to write one single operation in a line. So it is a very complicated but I'm on the right track if I'm able to read those Thrust-Channel values and instruct the throttle accordingly. Just one question if you don't mind: "read the 1 byte offset 0505 (the high byte) and AND it with 0x0F" means I have to add the hex value 0x0F to the value I read? 'AND it' means that? best regards Potroh
  16. Hi, As my question is related to Project Magenta, I know, primarily should have written to their support, which I actually did, but no answer from their side. That's why I dare to ask it here as my problem is at least partially related to FSUIPC. So to sum it up: I need to read the annunciated FMA Trust related values to rightly drive my motorized throttle quadrant. The offset in the PM docs for this says: 0504 2 AP Mode 3 (Annunciator Values) (Read Only) Autopilots Active (Bits 0 = none or any combination of 1, 2, 3 (bit 3), i.e. value 5 would be A/P 1 and 3 active) Thrust Channel (Speed modes) Vertical Channel (ALT etc.) Horizontal Channel (HDG etc.) 0xAuto * 0x1000 + 0xThr * 0X100 + 0xVer * 0x10 + 0xHor And I understand that the different hex values for each 'channel' sum up the value. But how can I specifically read those few values I'm interested in? What does actually the line 0xAuto * 0x1000 + 0xThr * 0X100 + 0xVer * 0x10 + 0xHor - means? For instance, I need to know when toga is annunciated and when the THR part of the FMA say Retard. Used FSUIPC's logging function to find these values, but the given hex values are always dependent on other channels, those I'm actually not interested in this time. How would it be possible to only read the needed values in the THR channel? thanks in advance Potroh
  17. Hi Kosta, Thanks much. I will experiment. regards Potroh
  18. Hi Pete, You are right of course, I did not try to look up the sound part of the Lua examples, mainly because I did not find any. Frankly, that's why I named this thread "Lua sound example" because I hoped someone has done some sound related Lua file and would be willing to share, so I wouldn't have to start from scratch. I have some visual basic experience, but that wouldn't be of too much help here, so was simply hoping that someone could help with some EXAMPLES, so I do not have to learn Lua from scratch. But you are right and it wouldn't hurt if I get deeper into the docs, although a tiny sample would have been truly useful. many thanks for your help regards Potroh
  19. Hi Pete, Well, I'm not a programmer, nevertheless I can find my way in these files I guess, but I need an example file, which we do not have for the Lua sound library here. The only thing I'd cry for is an example file with the following simple things: 1. How to automatically start a Lua file without any key or button, because I want these sounds to be always there. 2. A sample to play the sound via xy device 3. A sample to loop the sound via xy device 4. A sample if-endif structure to play a sounds if a FSUIPC variable changes. A single file with these would truly make my life easy. best regards Potroh
  20. Hi Pete, Would it be possible to obtain a very small example of how to use the sound-library functions? regards Potroh
  21. Hi Folks, Can someone show or upload any sample/example of how I could play some sounds via the new Lua-FSUIPC module? I was a long time user of Esound, but have no Lua skills whatsoever. Can anyone help to find the easiest and simplest way? I just want to play some sounds under certain conditions. thanks Potroh
  22. Hi Pete, Many thanks for your prompt answer! Yes, your wisdom has solved the problem, I have renamed FSUIPC4.KEY and it works perfectly now. I never thought of doing this, as I had no idea that the key-file-name counts at all. It used to work fine under XP, without renaming it. Many thanks again! regards Potroh
  23. Hi, Perhaps a silly question directly to Pete. Since FS2000 or so, I have always used two copies of FS. On a different partition I always had a 'clean' copy, without add-ons and the like, which I use for design work. As per the old trick, I copied fsx.exe under a different name and it worked perfectly, including FSUIPC, which also worked fine being copied to the other 'Modules' folder of the 'design' copy of FS. Worked perfectly till now (when I installed Win7 64bits version). Now, under WIN7 I simply can not get this separate copy of FSUIPC work, whatever I try to do, it always remains unregistred. I even renamed the original FSX folder, installed FSUIPC4 directly under the other copy, but I can't get it work 'registred' if I use the other fsx.exe copy (which in my case is renamed to workfsx.exe). If I run the spare copy of FS by starting it with fsx.exe, FSUIPC is registred and works fine, but whenever I start it with workfsx.exe, FSUIPC is unregistred. Any help please? thanks in advance Potroh
×
×
  • 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.