Jump to content
The simFlight Network Forums

kzuerner

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by kzuerner

  1. Hi, in Prepar3d I can set under "Settings - Failures" - Controls a failure for Left Flap and/or Right flap. Can I find out via FSUIPC that one of thoses flags has been set? Regards Klaus
  2. Hi Pete! Thanks for your response! I will see how I can handle it. But you know it anyway .... No way that you retire .... :-) Thanks for your continued support to the Flightsim community. Regards Klaus
  3. Hi Pete! Unfortunately I only found "Recorder Record Start" 67396. How could I stop the Recorder and use Playback? Regards Klaus
  4. Hi! Can I "operate" the Recorder in Prepar3d via FSUIPC? In Simconnect you have "StartRecorder", "StopRecorderAndSaveRecording" and "PlaybackRecording". I think in Simconnect this is only available in V 3 and not befor. Regards Klaus
  5. Hi Pete Thank you for your continued support which you give the community since many many years. I think I will find my way to solve the problem with the hints you gave me. And if not ,,,,,, I will come back and ask :-) Thank you again Klaus
  6. Hi Pete Don't be too angry with me I admit that my knowledge in programming is limited and I do have problems with SW, UW, etc. etc. But thanks for your advice. I will try to find my way. Klaus
  7. Hi Pete! Thx! You are probably right :???: Junior school stuff but ...... -- "Record to CSV" example data logging LUA plug-in, by Pete Dowson, September 2008 -- Open an exisitng "FSrecord.csv" file to append to, or create it if it doesn't exist -- It will go into the Modules folder because I've not included a full path (like "C:\....") -- By using "assert" you get an error message if this fails f = assert(io.open("FSTD_Test.01.csv","a+")) -- write the CSV column headings f:write("\r\nmsecs,msec,time,lat,lon,alt(ft),pitch,bank,hdgT,hdgM,vs,ias,tas,gs,throttle,prop,mixture,rpm,manifold,elevator axis,elevator,aileron axis,aileron,rudder axis,rudder,trim axis,trim,A0A,rollrate,yawrate,stall,load,slip\n") -- note the elapsed mSecs count now so can provide relative mSec timing column time0 = ipc.elapsedtime() -- Loop until our Flag 0 is set (by assigned FSUIPC control) while not ipc.testflag(0) do -- Set the timestamp for this loop time = ipc.elapsedtime() - time0 -- Read all the data we want from FSUIPC hour, min, sec, hourZ, minZ = ipc.readStruct(0x238, "5UB") 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) -- throttle = ipc.readSW(0x332E) throttle = ipc.readSW(0x088C) proplever = ipc.readSW(0x088E) mixturelever = ipc.readSW(0x0890) rpmscalar = ipc.readSW(0x08C8) rpm = ipc.readSW(0x898) manifold = ipc.readSW(0x08C0) elevatoraxis = ipc.readSW(0x3328) elevatorcontrol = ipc.readSW(0x0BB2) aileronaxis = ipc.readSW(0x332A) aileroncontrol = ipc.readSW(0x0BB6) rudderaxis = ipc.readSW(0x332C) ruddercontrol = ipc.readSW(0x0BBA) trimaxis = ipc.readSW(0x3338) trimcontrol = ipc.readSW(0x0BC0) AoAindicator = ipc.readSW(0x2ED0) rollrate = ipc.readSD(0x0384) yawrate = ipc.readSW(0x30B8) stallwarning = ipc.readSW(0x036C) loadfactor = ipc.readSW(0x11BA) sideslip = ipc.readSW(0x2ED8) -- now convert them all from FS units into those we normally recognise gs = (gs * 3600) / (65536 * 1852) tas = tas / 128 ias = ias / 128 mach = mach / 20480 vs = vs * -3.28084 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) throttle = (throttle / 16384) * 100 proplever = (proplever / 16384) * 100 mixturelever = (mixturelever / 16384) * 100 manifold = (manifold / 1024) rpm = (rpm * rpmscalar) / 65536 a, b = math.modf(rpm / 10) rpm = (a * 10) msec = time / 1000 loadfactor = loadfactor / 624 -- but only log this time IF we aren't in an FS menu, or loading scenery -- (check the "ready-to-fly" flag word at 3364) -- and provided we are not paused (flagged at 0264) if (ipc.readUW(0x3364) == 0) and (ipc.readUW(0x0264) == 0) then -- if alt >= 2000 and alt <= 3000 then -- write a CSV line to the open file f:write(string.format("%d,%02.1f,%02d:%02d:%02d,%02.4f,%03.4f,%.1f,%.2f,%.2f,%03.1f,%03.1f,%d,%d,%d,%d,%d,%d,%d,%d,%02.1f,%d,%d,%d,%d,%d,%d,%d,%d,%d,%.2f,%.2f,%d,%.2f,%d\n", time,msec,hour, min, sec,lat,lon,alt,pitch,bank,hdgT,hdgM,vs,ias,tas,gs,throttle,proplever,mixturelever,rpm,manifold,elevatoraxis,elevatorcontrol,aileronaxis,aileroncontrol,rudderaxis,ruddercontrol,trimaxis,trimcontrol,AoAindicator,rollrate,yawrate,stallwarning,loadfactor,sideslip)) -- end end -- 20 times per second, roughly (allow 2 mSecs overhead) ipc.sleep(498) --ipc.sleep(93) end -- tidy up at end ... f:write("\n") f:close() -- end of example program Thank yo for your assistance Klaus
  8. Hi Pete! Thank you for your reply! Yes I did search and find the items in your document. And I do get data into the .csv file. But the values I get do not seem to make any sense. (Maybe my programming is just wrong) Maybe you allow me to send you my .lua file and have a look into it. (Flaps has still to be done) And as said: Yo dont need to do that for free. Thank you in advance. Klaus
  9. Hi Pete! I would ask you for help if possible. I am useing Prepar3d V2.5 and FSUIPC 4.949f. For a project I have to do (urgently) I have to record parameters during our test flights. I used your example "record to csv.lua" which works for me. But unfortunately I am not good enough to retríeve all necessary data via FSUIPC and display it in a "readable format". I got throttle, prop, mixture rpm etc. but I need more information Where I have problems is: AoA sideslip angele (as degrees) flap (as degrees) roll rate (as degrees/second) yaw rate (as degrees/second) Probably all that information can be retrieved but my programming skills ar very limited. We would also be interested in elevator force, aileron force and rudder force but here I am not even sure if we can get those information. (By force I mean the force the pilot has to apply to move the rudder) So if you could help me to get your example program "enhanced" it would help me. And: I can fund that work if the price is reasonable. Regards Klaus
  10. Hi Pete! I am useing Prepar3d V2.4 with FSUIPC 4.936a For tests I am trying to create a little program that informs me when the transponder has failed. Reading your documentation I would expect either bit 0B6F or 3BE4 (or both?) to be "1" when I set the transponder to "failed" in Prepar3d. But none of them changes from 0 to 1 (I am looking them up with FSInterrogate) What do I do pissibly wrong? Thanks for your reply Regards Klaus
  11. Hi Pete! Thanks for your reply! Actually I only tested two different planes here and I have the same problem on both planes. So I will continue to investigate. Maybe I can locate something in the cfg or air files. Regards Klaus
  12. Hi Pete! I have looked up various forums on my problem but did not find an answer up to now. Also it obviously not a problem of FSUIP maybe you can give me a hint into the right direction ... I am useing Prepar3dv2.3 (of course with FSUIPC but as mentioned it is not a problem of FSUIPC) with the standard Mooney. When I accellerate the throttle the MP and RPM "go up" more or less like in the ral plane. When I move the throttle to idle MP "goes down" immedeately while RPM "decreases" slowly, much slower than in the real plane. Do you happen to know where I could adjust this behaviour? (in the aircraft.cg file possibly?) Thanks for your assistance Regards Klaus
  13. Hi Pete! Thx for your Respons. You are right :-) Regards Klaus
  14. Hi Pete! I am running Prepar3dv2 with FSUIPC 4.928 and WideClient 6.999b. I wanted to see if I could create a little lua-program which makes changes to prepar3dv2. So I started to test "MyDisplay.lua" on the client and this works okay (well it only receives data from the sim). Next I tried your example "init pos.lua" and expected it to set my plane to the place you defined in the program. Unfortunately it does not do it. So am I wrong with my expectations or what else could I have done wrong/not set up correct? Thx for your advice. Klaus
  15. Hi Pete! I am trying to "move" my old GFDisplay.ini-Settings to "Lua". With the help of your examples I allready figured out what to do but i am obviously not good enough in programming to find out how to read and write the single bits for the lights in FS (Offset 0x0D0C). Do you happen to have an example which would guide me in the right direction how to read and write those bits? Thanks for your help Klaus
  16. Does anyone happen to have a newer Goflight SDK then the one you can download from the GoFlight internetpage? Or at least a description about the entrypoinst and its parameters for the GFDev.dll. I want to write a little program that uses the GF46. Thanks in advance. Klaus
  17. Thank you Pete! You are right (as usual!!)!! It is a problem with the sequence. I will try to find out what goes wrong here. Thanks Klaus
  18. Hi Pete, I was useing your FStarRC quite successfully in the last years. Yesterday I decided to update my System a little bit (which might have been a mistake) and had a look what are the latest versions of your programs. As I am still useing FS2004 with all its addons I downloaded the latest version of FSUIPC3.822, Wideclient6.764 and Makerunways_429. I then created a new FStarRC.rws with Version 429 of Makerunways. Today I created a new Flightplan with FStarRC (Version 2.01) but I am not able to load the pln-file in FS2004. I then created a FStarRC.rws with version 423 of Makerunways but I have the same effect. The pln-file looks different then the ones I have created before but I can not figure out what I do wrong. Maybe you have an idea. I tried to attached the pln-file I have created but the system won't let me. So here is the result: [flightplan] title=FStarRC: EDNY to LOWK description=Friedrichshafen to Klagenfurt at FL190. Generated by FliteStar via FStarRC © Pete Dowson type=IFR cruising_altitude=19000 departure_name=Friedrichshafen departure_id=EDNY, N47* 40.20', E9* 30.49', +001344.00 destination_name=Klagenfurt destination_id=LOWK, N46* 38.57', E14* 20.23', +001470.00 waypoint.0=EDNY, A, N47* 40.20', E9* 30.49', +001344.00, waypoint.1=239TO, I, N47* 39.79', E9* 29.48', +001800.00, waypoint.2=NY040, I, N47* 38.16', E9* 25.28', +003300.00, waypoint.3=NY041, I, N47* 34.22', E9* 27.80', +005400.00, waypoint.4=NY075, I, N47* 40.06', E9* 56.98', +014100.00, waypoint.5=TINBO, I, N47* 38.79', E10* 0.11', +015100.00, waypoint.6=BENEG, I, N47* 35.30', E10* 8.69', +017300.00, waypoint.7=DINUG, I, N47* 34.24', E10* 11.29', +017900.00, waypoint.8=ELVUM, I, N47* 30.44', E10* 20.60', +019000.00, waypoint.10=LIZUM, I, N47* 6.90', E11* 45.36', +019000.00, waypoint.11=Xrstr, I, N46* 47.87', E13* 23.48', +010009.00, waypoint.12=VIW, V, N46* 41.78', E13* 54.88', +007300.00, waypoint.13=KFT, V, N46* 35.85', E14* 33.74', +004100.00, waypoint.14=LOWK, A, N46* 38.57', E14* 20.23', +001470.00, Thanks for your assistance. Klaus
  19. Hi Pete! I am back and made a new test! Sorry to say, that the result is the same. I double-checked that the FStarRC.exe and FSTarRC.dll are in the same directory as the FlightStar.exe. Any advise?? Could it be that Jeppesen uses a newer version of mfc42.dll which creates the problems?? Regards Klaus
  20. Hi Pete! I have done a test with version 2 and got the following log. Jeppesen uses the mfc42.dll in their directory. Unfortunately I can not attach files (don't know what I am doing wrong). 0 ********* FstarRC, Version 2.00 by Pete Dowson ********* 0 Sending RC plans to: C:\Programme\Jeppesen\Common\FsPlans\ 10 Error: no Base for for MFC42.dll 10 Error: couldn't hook DrawTextA 10 Error: no Base for for MFC42.dll 10 Error: couldn't hook DeleteDC 17636 ********* FstarRC Log file closed ********* Maybe this information helps. Regards Klaus (Won't be back until September 22nd)
  21. Thank you Pete! I will test and report back!! Klaus
  22. Thank you Pete for your quick reply! No problem! I do not see this beeings a major problem, as I can help myself in other ways. Have a nice holiday and I will come back at the end of September. If I can be of any help with my version of Flightmap (I am allowed to install it on a second computer, so it will be no licence-violation!) let me know! Regards Klaus P.S.: Maybe this is also the reason why GPSOut does not work useing WideFS any more. But it works useing a "null-modem".
  23. Hi Pete, I was useing your FStarRC program last year for a long time very successfully with my FS9. I had to pause my simflights for several month but now I can start to use my simulator again. Unfortunately my FStarRc (version 1.85 - also loaded as Version 1.86 from your downloadarea - date 20.3.2004) does not produce any outputfile anymore also I print the navlog as "Expanded Log". I have checked the pathes in the ini-file and even changed them to c:\temp (a folder I definitely have) but no success. What happend in the months since my last usage was that I updated my Jeppesen Flightmap regularely. Currently I am useing Version 9.3.0.0 (Build 11516). Can you think of any reason why it does not work anymore? Can I somehow "monitor" what is going on? Regards Klaus
  24. Thanks Pete! This works fine now! Regards Klaus
×
×
  • 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.