Jump to content
The simFlight Network Forums

gr8guitar

Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by gr8guitar

  1. Actually I do, perhaps I didn't make it clear, or I still don't understand. In the WriteOffset.lua, I have the code: ipcwriteSW(0x66C0, 3). Also, how come the luakill ****** locks up FS? To give you an idea of what I do understand, below is the code I have that I can actually use. It's nice because of the different aircraft I fly, I don't have to remember panel order, etc. I noticed that ipc.display(etc.) doesn't require anything else, so that is why I am thinking ipcWriteSW(etc.) shouldn't require extra code since they are "outputting". -- Loop forever: to stop this you'll have to use the LuaKill control on it. while 1 do -- getting CC60 panelid = ipc.readSW(0x66C0) if panelid == 0 then panelsel = "No Panel" elseif panelid == 1 then panelsel = "Main G1000" elseif panelid == 2 then panelsel = "Radio" elseif panelid == 3 then panelsel = "PFD" elseif panelid == 4 then panelsel = "MFD" elseif panelid == 5 then panelsel = "GNS430" elseif panelid == 6 then panelsel = "GNS530" elseif panelid == 7 then panelsel = "Pushback" end ipc.display("Panel: "..panelsel) -- Sleep for 250 mSecs so the update gets done roughly 4 times per second ipc.sleep(250) end Also, I looked into the Lua Library.pdf and I really did not and do not understand the syntax of lua. Where do I find info for that? For example, you have in the display vals.lua : ipc.display("lat="..lat.."\nlon="..lon.."\nalt="..alt.."\npitch="..pitch.."\ bank="..bank.."\nhdgT="..hdgT.."\nhdgM="..hdgM.."\ vs="..vs.."\nias="..ias.."\ntas="..tas.."\ngs="..gs.."\nmach="..mach) -- Note the use of the \ escape to allow us to use multiple lines in a single string -- The \n and the \ followed by a real new line both get included as new lines in the result I hate to admit, I didn't see the logic. What are the .. for, and how come ..mach didn't have an ending ..? I noticed that the line starting with bank= and vs= didn't need an "n". I tried to separate the info between the " " to understand but then again, why didn't mach have mach.."? It seems logical to me that the quotes should be like the first parameter of "lat="..lat.. but then the next is: "\nlon=" but to me, seems like it should be n\"lon=".The \n control is combined with the text of lon=". The reason this came up was because I tried to add 66C1 (the logic works fine in FSUIPC.ini) and display both panelsel and gaugesel and now only the gaugesel shows info. correctly. Iin my lua: ipc.display("Panel: "..panelsel.."\nGauge: "..gaugesel). The panelsel only shows when 66C0 = 0 or 4. I will hestitantly admit, most of my frustrations is getting the syntax correct <sigh>...
  2. Okay, well I got a lot working thanks to you. I can now dial and display the panel. I went back to using your loop example as I find that easier to watch the panel selection being shown, but again, when I assign a key (or button) to luakill, it locks up FS which is why I tried the 1500 msec option. I also chose that option because if I hit the same key before the timeout of 1500 msec (or whatever I have selected, it too locks up FS. I must admit, I'm still confused as to the writing to an offset. If ipc.readSW(0x66C0) works, why doesn't ipc.writeSW(0x66C0, 3)? Again, thanks so very much. I got those LUA programs thinking they were a line editor. I too realize I could just count but I wasn't sure how lua (using Notepad.exe) counted the spaces (empty lines). I will now search for UltraEdit.
  3. Thanks for your time and information. I do not know what line 30 is either. I'm not sure how it (lua) counts the lines. I downloaded lua 5.2.3 (for Windows) but it's like a DOS program so I didn't find it useful. I also downloaded Linda 1.1.3 and I didn't find it useful so I use Notepad.exe to edit. When you say: "You should define a defalut value...", do you mean assign it a variable type. I.E., in Excel: Dim panelsel as String? Also, why didn't just ipc.writeSW(0x66C0, 3) work to write the value of 3 to 66C0?
  4. Okay, geting there but must admit, a bit confused. Below is the code I tried to modify, in red is the stuff that did not work and the FSUIPC log info. Why did the modified part not work? Code: -- "Display Vals" example LUA plug-in, by Pete Dowson, September 2008 -- Get all of the data we want to display -- gs = 02B4 and tas(02B8) and ias(02BC) offsets follow, thus 3UD gs, tas, ias = ipc.readStruct(0x02B4, "3UD") lat, lon, alt, pitch, bank, hdgT = ipc.readStruct(0x0560,"3DD", "2SD", "1UD") mach = ipc.readUW(0x11C6) vs = ipc.readSW(0x842) -- and convert it from FS units to units we like lat = lat * 90 / (10001750 * 65536 * 65536) lon = lon * 360 / (65536 * 65536 * 65536 * 65536) alt = alt * 3.28084 / (65536 * 65536) pitch = pitch * 360 / (65536 * 65536) bank = bank * 360 / (65536 * 65536) hdgM = hdgT - (ipc.readSW(0x02A0) * 65536) hdgM = hdgM * 360 / (65536 * 65536) hdgT = hdgT * 360 / (65536 * 65536) vs = vs * -3.28084 ias = ias / 128 tas = tas / 128 gs = (gs * 3600) / (65536 * 1852) mach = mach / 20480 -- getting CC60 panelid = ipc.readSW(0x66C0) if panelid = 3 then panelsel = 'HUD' end -- display it all in an FS window -- (note, there is a limit of 1023 characters in this, but we fit okay) -- added panelid ipc.display("lat="..lat.."\nlon="..lon.."\nalt="..alt.."\npitch="..pitch.."\ bank="..bank.."\nhdgT="..hdgT.."\nhdgM="..hdgM.."\ vs="..vs.."\nias="..ias.."\ntas="..tas.."\ngs="..gs.."\nmach="..mach.."\nPanelID="..panelsel) -- if I use panelid instead of panelsel, then it works to show 66C0's value. -- Note the use of the \ escape to allow us to use multiple lines in a single string -- sleep for 1.5 sec. ipc.sleep(1500) --- Delay for a number of seconds. -- @param delay Number of seconds function delay_s(delay) delay = delay or 5 local time_to = os.time() + delay while os.time() < time_to do end end FSUIPC log: 447562 *** LUA Error: ...am Files\Microsoft Games\Flight Simulator 9\MODULES\display vals pan.lua:30: 'then' expected near '=' I even changed from 'HUD' to "HUD" and no change. If I read the panelid then it works but not when I try to use panelsel as a string. By the way, near the end seems convoluted but it works to only display for 1.5 sec. I tried assigning a different key to kill the lua but then FS would lock up. And finally, I assigned the W key to write to ipc but that did not work, the code was simply ipc.writeSW(0x66C0, 3). FSUIPC.log didn't show any errors.
  5. Okay, haven't delved into LUA but it looks like I'll have to do that. Thanks for your time and information.
  6. Hello Pete, can you direct me as to where i might either find a gauge (to get an idea) or maybe how to use AdvDisplay to show a text message based on the offset. To be clearer, I already have 66C0 (don''t know if this offset number is correct as I'm on a different computer) being shown. In this case, I am using the FS Title Bar option instead of the AdvDisplay option to show 66C0. What I have set up is, I use a rotary switch to increment/decrement through 66C0, and then I use a pushbutton to select which panel to toggle. I use it because I have more than 9 panels so I must use the panel ID toggle option as well. Besides seeing the actual number that the offset 66C0 gives, I would like to display the text of the actual panel name. I.E., when 66C0 shows "12," I then can see text showing it to be "HUD." Thanks.
  7. ah... thanks! I was going nuts as to why FSUIPC wouldn't accept the mouse macros directly - all is well now.
  8. Up front, I don't have much money and whenever possible, I try to make things work that are free. I recently was given an "old" computer that is a 64 bit computer. I removed Windows XP 32 bit and installed Windows XP 64 bit to take advantage of the RAM. When this happened, I lost the IPX and thus, Wideview2000 (which was free years ago). Also, I run FS9 because my older computers couldn't handle FSX coupled with all the work on gauges and aircraft through the years. Wideview2000 works for FS9 under Windows XP 32 bit! I never tried it with FSX but it might since, I believe, it accesses FSUIPC. Back to 64 bit: So I searched the Internet trying to find out about IPX and it's been removed from Windows 64 bit OS's apparently. I came across another smart individual that made a "wrapper." I don't really know what "wrapper" means but in any case, it's called "IPX wrapper." My main computer, the 64 bit is connected to a tablet that I use as my EFB, using Windows XP 32 bit. IPX wrapper has to be in the same folder as Wideview2000 and started first, then run Wideview2000. Both computers must use the IPX wrapper to work. One thing I have not been able to figure out as I did in the past is be able to run Wideview2000 on a 3rd computer. The old way, using the main computer was to have Wideveiw running as a server on ports 8000 and in a seperate folder, run on port 8001, maybe not necessary but it works. I then had the clients running on ports 8000 and 8001 respectively. And then I had my corner views as well. I have not been able to do that with the IPX wrapper - yet... Hope this helps. Days later, I did get IPX wrapper to transmit to multiple ID sockets (I previously called ports) but it's too jerky for the corner views to be enjoyable along with the EFB. Somewhere on the Internet, I stumbled across a program called FSManager 2.85 (looking for a moving map). It allows LAN and so, I use IPX wrapper to drive the corner views on one 32 bit computer and FSmanager to handle the EFB on a different 32 bit computer. Note that for some odd reason, the programmer did not want it to work past 2005. Someone else made a dll that takes care of that as well.
  9. Okay, thanks. With all there is to do with FS, I'm not really into programming gauges (as that takes away from "flying") but I do appreciate your time and information.
  10. <whew> Thank you Ian P. I was wondering what Mr. Dowson's concern was all about " ... going to revoke my registrations?" Especially since I've purchased FSUIPC for both FS9 and FSX. I'm glad that is cleared up!!! Can either of you explain to me why a great deal of the FD's command bars don't follow the ILS commands, except for the 3 gauges I mentioned above? And why only some old gauges appear only when undocked? Thanks.
  11. As i may have mentioned earlier, this "keygen" is at the website avsim..com. Having tried it, it is my understanding that this keygen only works FSFlightmax. As always, I appreciate your time and information. I had posted a question at: http://forum.simflight.com/topic/28063-navigation-problem-help/, and above: Do you know why, in general, the FD does not "match" the ILS commands when in manual mode? I have 2 separate gauges that work but FSPanelStudio doesn't break down the code of the gauges (as I had hoped and why I bought it) and these gauges require other elements to work. These 2 gauges plus FeelThere's ERJ's FDs are the only FDs I trust to keep me centerlined with the ILS approach - ugh.
  12. Well, i think it is working, except for the WX radar part. I read on another forum that Active Sly or FS Meteo is require to make FSFlightmax work. If that is the case, I really don't need FSFlightmax AND any one of the other when I already have other WX gauges. I was just curious about FSFlightmas as I mentioned before, having stumbled on it looking for other gauges. Here is my fsuipc.log: ********* FSUIPC, Version 3.999w by Pete Dowson ********* Running on Windows Version 5.1 Build 2600 Service Pack 3 Verifying Certificate for "C:\Program Files\Microsoft Games\Flight Simulator 9\MODULES\FSUIPC.dll" now ... SUCCESS! Signature verifies okay! Running inside FS2004 (FS9.1 CONTROLS.DLL, FS9.1 WEATHER.DLL) User Name=******* User Addr=******* FSUIPC Key is provided WIDEFS not user registered, or expired Module base=61000000 WeatherReadInterval=4 LogOptions=00000001 DebugStatus=15 1328 System time = 06/10/2012 10:05:13 1328 C:\Program Files\Microsoft Games\Flight Simulator 9\ 1328 System time = 06/10/2012 10:05:13, FS2004 time = 12:00:00 (00:00Z) 2656 FLIGHTS\OTHER\FLTSIM.flt 2671 AIRCRAFT\c172\Cessna172SP.air 2687 Aircraft="Cessna Skyhawk 172SP" 7343 ERROR: Can't change message filter: functions not available 14750 C:\Documents and Settings\owner\My Documents\Flight Simulator Files\172-NEB.flt 18328 Clear All Weather requested: external weather discarded 19125 Advanced Weather Interface Enabled 22375 Traffic File #14 = "scenery\world\scenery raffic030528" 92718 WeatherOptions set, now 400C3607 (timer=0) 1406312 FS98 Pressure=989.2 mb 1406312 FS98 Wind0: ground (3835ft) to 3330ft AGL, dir 131M, vel 15, gust 22, turb 64 1406312 FS98 Wind1: 7160ft to 7230ft AMSL, dir=300T, vel 22, gust 30, turb 64 1406312 FS98 AmbientWind at PlaneAlt=13855: dir 286T, vel 22 1406312 FS98 Vis: range=50sm, (raw value=5000) 1406312 FS98 Cloud1: type=1, from 36755ft to 40036ft (+/- 100ft), cover 2, turb 144, ice 0 1406312 FS98 Temp0: to 3835ft, Day 20.1C, NightVar 3.0C 1447250 WeatherOptions set, now 0000B0A7 (timer=0) 1647187 System time = 06/10/2012 10:32:39, FS2004 time = 10:06:03 (16:06Z) 1647187 *** FSUIPC log file being closed Memory managed: 0 Allocs, 13275 Freed ********* FSUIPC Log file closed *********** This is one of the websites that suggested FSFlightmax: http://www.flightsim.com/vbfs/showthread.php?58795-FSFlightMax-in-FS9 as a freeware. There were others but I don't recall but could retrace using google (actually I use ask.com mostly). Since the last message, I'm not comfortable using FSFlightmax any more. It's not worth ruffling up feathers and definitely not worth doing anything illegal. Onward to my FD and PSS747 gauge situation...
  13. I'm sure I'm not doing anything illegal, at least not knowlingly. FSflightmax can be optained through Avsim.com. I hope THEY don't do anything illlegal. It was reported that FSFlightmax was discontinued and now a freeware although it still requires a key. I'M HOPING THIS IS TRUE. Note that I purchased FSUIPC for FSX and I don't even use FSX. So I'm not immunue to purchasing when required. I'm not sure how I came across FSFlightmax, I'm always searching for something and once in awhile, something else pops up that catches my interest. Many times I'm looking for a gauge. Two things have eluding me through the years: 1) I purchased (I must have close to 100 purchased CD's) World Airlines from JustFlight way back when. It is PSS 747 and 777 for FS2000/2002. I've mentioned before I purchased PIC767 (FS2000, and now LDS767 for FS2004). I like them because, particularly at that time, they had working FMC's. I thought I would see if they would work in FS2004, as some installations take and since already purchased, like to save money and not adding more CD's. They work but only if I undock the window. I don't understand what docking/undocking actually does to effect whether panels/gauges are shown. When I undock the panel, I can see the gauges but then the front view goes black and I have to add a window for the front view (annoying but works). My understanding of this phenomenom would be nice even though, I did purchase LDS767 because it had added gauges and works great in FS2004. 2) And more importantly, I was actually searching for a Flight Director gauge that actually works correctly in manual mode. I asked about this in this forum about a month ago under naviation. I noticed that in the default aircraft and many many addons, that the FD does NOT follow the ILS signals even though the APP is selected, OBS and NAV set when flying manual. a) I know it's suppose to, a) having taken 732 training at United's training center in Denver, b ) described in a manual I have about flying jets and c) I have 3 working gauges that perform correctly. rp727!adi works but requires fssound.dll, iFly747-400!Attitude but requires its Dummy panel and erj_main.gau (from FeelThere) which can not be disassembled as a separate gauge. So... going back to FSFlightmax, I'm not sure exactly when it appeared but when it did, it intriqued me. I have already purchased AOG WX and Reality XP WX (and Feelthere's erj works by itself) so I don't really need another WX but I liked FSFlightmax and it seemed to integrate GWPS, traffic, sectionals (or any map) and WX. All these years, I never knew it existed til about 2 days ago. I came across this forum seaching the internet of why the WX didn't actually show. In the above messages, there is mentioned about free application keys so I'm guessing it's available for FSFlightmax, as per the title of this particular forum, if not, please let me know and I will discontinue using FSFlightmax.
  14. Hello Mr. Dowson, well I came across fsflightmax and I thought I would try it over AOG WX and Reality XP WX that I already have but I am not able to see any WX on the radar no matter what I do. I tried selecting "program generated temporary flight wx" and tried "UI generated flight.wx" wiht the ini editor and no success. I tried removing the fsuipc.key but I did not see an option to "register an application." I used keygen for the key. I do have the fsflightmax working as I can see sectionals, ground, and tcas working... but no WX radar. I also tried real weather download and fs weather with no luck. I am attempting to use it with FS9, so maybe that's the problem, any assistance would be greatly appreciated.
  15. Hello, can someone tell my the flight director (FD) in most aircraft doesn't match the ILS indicator on an approach in manual mode? Is there a setting I'm missing? The FD should give the same direction command as the ILS if radios are set, etc. I have the course (nav set at 110.30, OBS set to 112° - KGJT-rwy 11), and APR selected but I have never been able to trust most of the FD's (whether single or dual cue) command in manual on an ILS approach. The FD's work properly with FeelThere's Embraer 135/145 and and an old 737/727 FD as shown in the picture provided. I saved the picture as an jpg to save size of file.
  16. Going back to the original question. I have found two ways to put real GPS into FS9/FSX. 1) There is a GSP2FS software (free) out there, not sure if it's work with FSX, works fine with FS9 (esp. in slew mode). 2) Using Excel, I read the com port, parse the needed info and send coordinates and altitude to FS, works great but remember, it updates at the rate the GPS outputs.
  17. Hm.. I'm think I understand that it's a no as far as using Excel to access the control (assignable command). I got a new computer and wow, what a hassle to put things back. I even put in each USB device in the same order as originally placed but the assignment still got messed up and of course, I had to delete all the assignments that FS applies as well - ugh. So importing the fs9.cfg file probably wouldn't have helped. So, getting back to Excel and FSUIPC, what I did was read Engine 1's oil pressure and then send that value to the other engines when I'm flying a single engine, or send 1 to 3 and 2 to 4 when flying a twin. Works fine, just not as clean as I would like. I can't say it enough, Using Excel and FSUIPC has allowed an amazing amount of flexibilty and features that otherwise would go untapped.
  18. Okay, another question: It may have been explained but I missed it. Using Excel, I'm able to access the HEX offsets (as an example only: 34B0 = Pressure Altitude) but is there a way to access say, i.e., 65857 = PAN_RIGHT_DOWN using Excel. Here's the deal, I re-ordered the Saitek BIP (Backlit Information Panel). I had ordered a few months ago but it did not work with FS9, despite their website indicating so. I sent it back. Well, thanks to SPAD (Massimo), it now works with FS9. But again, one of the other reasons I sent it back was it does not come with all the tiles it advertises as well and cannot even be programmed to display those tiles if they did exist (it's profile programming software doesn't have the option). To make the most of what it can indicate, for example, I use Eng 1-4 Fire, Oil Press, and Oil temp. However, there are many times I fly aircraft with less than 4 engines. So the non-running engines show low oil pressure as it should. Since I have ExceI running anyways, would like to be able to use it to turn off those lights.
  19. Thanks for the info. I was just reading the pitch accelerations but it does not have any significant effect on the ground roll effect - that I can tell. I did notice that I did needed to change the effect of the pitch accelerations and some logic when I flew a heavier aircraft, like the 747. Other than that, I am really happy. I wish I would have thought of it before I purchased FSPS 3D Effect. I did not know it wouldn't work for FS9 and the 2D panel. It's truly amazing how versatile FSUIPC is.
  20. I have to say thanks again for FSUIPC! Ever since I saw the video on Youtube where the landing roll effect was shown, I was on a mission to find it. As I mentioned earlier, I purchased FSPS 3D Effect, found out it 1) Only works with FSX. 2) Only works in virtual cockpit. 3) Required shader (from SP2) - whatever that is. 4) It required FSUIPC. Hmm.... FSUIPC. I primarily fly FS9 using the 2D cockpit due to gauge/aircraft additions/modifications through the years. I wanted the "ground roll effect" for FS9. Basically I just added pitch acceleration/1000 (this is altered to desired effect) to actual pitch when on the ground and ground speed faster than 1 knot - I now prefer 20 knots. I'm curious why I see changes in pitch accelerations when I'm parked and the engine is running and no wind though. In any case, I'm extremely happy as this fulfills my needs and simply. :mrgreen:
  21. Hello, to the person wanting real GPS data into FS, there are two ways. 1) There is a GPS2FS program out there (from South Africa), it works well, especially if FS is in slew mode. My GPS's output is in one-second intervals so the FS is updated accordingly. There are GPS's that output at 5hz. And I believe FSUIPC allows this too because I'm able to read/write to FS, through FSUIPC. I'm using Microsoft's Excel to read the com port for the GPS data, parse the info. and then feed the coordinates and altitude to FS. Why do this? Well, it might seem crazy but I fly in mountainous areas and I always fly VFR, however... there have been occasions when the clouds crept up on me unexpectantly. I run the FS so should the emergency arise, I could still negotiate through the mountains. Clouds, wind and mountains are not a good mixture. The last time I was in clouds unexpectantly I didn't take my GPS and oops there I was. Fortunately at that time, the LORAN was still available and literally was a life-saver. A long time ago, I got bored with the actual flying but very interested in the "where am I?" Now a question for Mr. Dowson. I purchased FSPS 3D cockpit because I wanted the more realistic effect of the touchdown and landing roll I had seen on Youtube.com (per edetroit but I'm convinced he actually used FSX and this program instead of FS9). Anyways, I initially could not get it to work until I realized it needed FSUIPC to work! So my query is, what or where are the offsets for force feedback? I did search the pdf file (using: bump, force, feedback, land and didn't see anything related) My guess is, FSPS is using the force feedback info. and then moving the virtual cockpit to emulate the ground roll effect. Any help is always greatly appreciated.
  22. OH NO, not even close but thank you. It's the FSUIPC that is amazing!!! Couldn't be able to delve into these things without it :)
  23. ah.... learned something new. After much flying, I observed the following: Using my PID, and as long as I was using heading as my setpoint, I only needed Proportional control only and it worked quite sufficiently to maintain an error of zero. I had been impressed how well flight simulator (fs2004) handled this but didn't understand why it worked so well. After learning about system "leakage", which leads to steady-state offset (honestly knew about it, just didn't get it) , I decided to just observe fs by itself when it's tracking a radial, i.e: in NAV mode instead of HDG mode and I observed that it follows more of what I thought I would see in a PID controller. In other words, it wasn't as clean as when it maintains just heading. I noticed that it does more "hunting" and especially if there is a crosswind (the system leakage) and the farther away from the VOR station. In fact, it actually does a pretty lousy job... This is what is great about FSUIPC, to be able to test. It was difficult for me to see "real world" application until now. Wow, to be honest , I'm beside myself because even working at a nuclear power plant, I was not able to "mess" with stuff and just observe (probably a good idea ;) ). Through the use of FSUIPC, this has become an amazing learning tool as well as be able to apply to real world application, my airplane. Aircraft are different than typical parameters seen at a power plant. I.E.: even after a heading change, the control variable/output (in this case, ailerons/rudder) have to be neutralized (opposite output and then no output) once in the turn (if less than 30° bank) even though there's still an error in heading as the plane continues to turn and then opposite output to level off to desired heading. What a challenge, at least for me.
×
×
  • 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.