
kzuerner
Members-
Posts
48 -
Joined
-
Last visited
About kzuerner
- Birthday 01/01/1970
Contact Methods
-
Website URL
http://
Profile Information
-
Gender
Male
-
Location
Austria
kzuerner's Achievements
-
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
-
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
-
Hi Pete! Unfortunately I only found "Recorder Record Start" 67396. How could I stop the Recorder and use Playback? Regards Klaus
-
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
-
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
-
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
-
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
-
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
-
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
-
Find out if Transponder has failed
kzuerner replied to kzuerner's topic in FSUIPC Support Pete Dowson Modules
Thx for you response Klaus -
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
-
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
-
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
-
Hi Pete! Thx for your Respons. You are right :-) Regards Klaus
-
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