Jump to content
The simFlight Network Forums

Egyptair

Members
  • Posts

    19
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Deutschland

Egyptair's Achievements

Apprentice

Apprentice (3/14)

  • Collaborator Rare
  • Reacting Well Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. Hello again John, thank you, I will try this and come back to you. BTW, your lua script works perfectly, no more engine shut downs during flight. Kind regards Ahmed
  2. Hello, the homecockpit software always shows exactly the same egt values on both engines without variation, which is highly unrealistic. I want to write a program, that randomly makes small changes to the offset value for EGT engine 1 and EGT engine 2. EGT 1 : 0x08BE EGT2: 0x0956 -- //////////////////////////////////////////// math.randomseed(os.time()) function generateRandomValue() return math.random(-9, 9) end function updateRandomValue() while true do local randomValue = generateRandomValue() local sleepTime = math.random(3, 😎 os.execute("sleep " .. sleepTime) end end local thread = love.thread.newThread(updateRandomValue) thread:start() It gives out random values between -9 and 9 in a variable time between 3-8 sec. What do I have to add to change the values of the offsets 0x08BE and 0x0956 ? Kind regards
  3. Hello John, I got this message: 15953 [INFO]: **** Starting FSUIPC7 WASM Interface (WAPI) version 1.0.3 (WASM version 1.0.2) using connection -1 15953 [INFO]: Connected to MSFS 15985 Lvars received: 146 L:vars & 0 H:vars now available 15985 Lvars/Hvars received - checking aircraft autos.... 16047 LUA.1: beginning "C:\FSUIPC7\centerTankFuel.lua" 16047 *** LUA Error: C:\FSUIPC7\centerTankFuel.lua:4: 'then' expected near '!' 345047 LUA.2: beginning "C:\FSUIPC7\centerTankFuel.lua" 345047 *** LUA Error: C:\FSUIPC7\centerTankFuel.lua:4: 'then' expected near '!' 349719 LUA.3: beginning "C:\FSUIPC7\centerTankFuel.lua" 349719 *** LUA Error: C:\FSUIPC7\centerTankFuel.lua:4: 'then' expected near '!' I changed it to (and further reduced fuel amount) : local fuelLimit = 7000 function monitorCenterTankFuel(offset, value) if value <= fuelLimit and value > 0 then ipc.writeUD(0x0B74, 0) ipc.log("Center tank fuel quantity set to 0") end end event.offset(0x0B74, "UD", "monitorCenterTankFuel") ipc.log("CenterTankFuel lua script now running") I really thank you very much as you helped me out with an issue, I struggled with over many month !! Kind regards Ahmed
  4. Hello John, thank you very much, I will try this asap and will report. Kind regards Ahmed
  5. Hello John, I apologize for being in the wrong sub-forum, thanks for moving it to the correct place. I have checked the fsuipc offset logging and it is indeed 0x0B74 (%) and 0x0B78 (total amount in Gallons). 30 kg is equal to 7.93 Gallons. 30 kg is equal to 0.0018609 (0.18609 %) of total capacity of the center tank. The aircraft I use is the prosim 738 flight model, which uses both 0x0B74 and 0x0B78. I really appreciate your help and to offer the lua script file, which I would gratefully take. Thank you and kind regards Ahmed
  6. Hello guys, due to a problem with my homecockpit software (engine shut down, if I forget to switch of center pumps, when reaching 0 kg ), I need a small program, which monitors the amount of fuel in the center tank and when the amount is <= 30 kg, fsuipc shall set the amount to 0 kg. Something like: If center tank amount <= 0 kg then center tank amount = 0 Is this possible and if yes, how ? Thank you very much Simulator MSFS / FSUIPC 7
  7. John, as far as I have understood, the result of these 5 variables are written into the bin file: pAmbientTurbulence = (float *)GetProcAddress(hBtstrpDLL, "AmbientTurbulence"); pExportedPrecipType = (BYTE *)GetProcAddress(hBtstrpDLL, "ExportedPrecipType"); pExportedPrecipRate = (BYTE *)GetProcAddress(hBtstrpDLL, "ExportedPrecipRate"); pExportedAmbientVisibility = (float *)GetProcAddress(hBtstrpDLL, "ExportedAmbientVisibility"); pInCloud = (BYTE *)GetProcAddress(hBtstrpDLL, "InCloud");
  8. What I am trying is to have a small app. which does exactly the same, as the part in FSUIPC 6 (or lower) : Request wxr radar image data from active sky and save the matrix in a radar.bin file.
  9. Correct, it is Active Sky for P3DV5, which provides the data for the wxr radar image. Correct. Neither simconnect nor FSUIPC7 transmits the data for the wxr radar image, it is a direct connection between Active Sky and pro-sim via a port set in pro-sim. That makes me wonder, why simconnect connection mode works and FSUIPC not... The data comes from ASN. Because of this, the data is not exactly matching MSFS clouds, but comes pretty close. Everything works (range, tilt, intensity). Corrrect, simconnect has nothing to do with it. Pro-Sim uses the direct connection to ASN Kind regards Ahmed
  10. Hello Pete. Nothing... Active Sky communicates directly with pro-sim without having connection with MSFS. Due to that, the radar image and the clouds in MSFS does not match exactly...it is like having anything on the radar, when there is rain outside... There are 2 ways, where pro-sim gets it's data for the wxr radar: 1. Direct connection with Active Sky 2. Indirect connection with Active Sky via FSUIPC and the created radar.bin The problem is: When using FSUIPC as primary connection mode with pro-sim/MSFS2020, then pro-sim does not display any wxr radar. When using Simconnect as primary connection mode, then the communication works and the wxr radar is displayed. As due to hardware many users use fsuipc connection mode as primary mode, they cannot have a wxr radar image. That's where I want to step in: Using method no 2 via the radar.bin file to get us w wxr radar image. Kind regards Ahmed
  11. Hello Pete, thank you for this information. Then I will get in touch with them and hope, they can provide me with the information about the file. Kind regards Ahmed
  12. Hello John, thank you for your message. I mean the file, which is created by fsuipc, when you have ASNwxRadarPath=c:\radar.bin set . I thought, this file (radar.bin) is a matrix or something like that. Kind regards
  13. Hello, I want to write a small program, which generates the radar.bin file, normally generated by fsuipc (version <7) with active sky (ASNwxRadarPath=c:\radar.bin). Background: I want to generate a random wxr radar image within a home cockpit using FS2020 and Pro-Sim. For that, I need to know, how this file is built up ? I guess a matrix of numbers , which corresponds to density of rain ? Thank you !
  14. Hello John & Pete, I have thought about the issue again. Fact is: AS is producing a wx image and sends this to P3D // Pro-Sim. FSUIPC <7 is able to produce a wx image from the data from AS. The data is created by AS and then sent to P3D. FSUIPC <7 grabs this data (from P3D or direct from AS?) and produces the image. So there must be a way to add this function to FSUIPC 7 in that way, that it grabs the data sent from AS to P3D and creates the radar.bin. It would be a great addition for us homecockpit builders using the combination pro-sim and FS2020 to get a radar image . What do you think ? Thank you ! Ahmed
×
×
  • 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.