Jump to content
The simFlight Network Forums

Dominik

Members
  • Posts

    25
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Poland

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Dominik's Achievements

Rookie

Rookie (2/14)

  • Dedicated Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done Rare

Recent Badges

0

Reputation

  1. In the LUA code, I added print (CDU_data) to display this data in the console. CDU_Data is displayed as a string that is constantly changing. Do you need to format this data somehow after reading? In the attachment I am sending the log file. FSUIPC7_prev.log
  2. It uses LUA to read the offsets and write this data as text to a txt file. The second program reads this data from the txt file and sends it to the Arduino. My point is to use LUA to read the text lines on the CDU and save them as text in a txt file. Then the second program will read this data from the txt file and send it to the Arduino.
  3. using LUA I can read PMDG offsets but I have a problem with CDU Screen Data offset 0x5400-0x57FF. Can anyone help me how to read these offsets correctly using LUA script. Thanks for any help. Dominik.
  4. Thanks for your help, I set LvarScanDelay = 25 in FSUIPC_WASM.ini and actually fsuipc loaded more LVARs for me. Previously it was loading around 1700 now it's 1912. Everything works ok. I found the file FSUIPC_WAMS.ini in Community \ fsuipc-lvar-module only. There is no such file in the location mentioned in the Advanced User guide. Should I copy the teen ini file from the community folder?
  5. After updating to SU10 it seems to me that fsuipc does not load all PMDG LVARs. Lua reports the bug that there is no such LVAR. It always helped to call from Add-ond >> WASM >> Reload and then everything was ok. I tested on versions 7.3.7 and 7.3.9dFSUIPC7.log Regards Dominik FSUIPC7.ini
  6. Thank you for your help!
  7. I have a homemade panel. I want lua to read if a given switch is on or off. I don't mean the switch settings in MSFS, but the switches on my panel that I can set in fsuipc.
  8. With LUA I can write an event e.g. event.button (2,4,1, "EFIS320") and it works ok. But how do you check with LUA what position this button is in? Whether it is on or off, what is the position 0,1 or 2 Regards Dominik.
  9. I think I found a solution to the problem, I have to use string.format("%04X", value)
  10. Hello, I'm trying to read the offset 0x034E - COM1 frequency, using lua, Here is the code while 1 do file = io.open("test.txt", "w") ppp = ipc.readUW(0x034E) file:write(ppp, "\n") file:close() ipc.sleep(50) end The loop writes the value of this offset to the file. The value of this offset is 6194, com1 frequency is set to 118.050 It reads this value wrong and I don't know where I went wrong. Please help. Dominik.
  11. Despite it all, you would add these offsets to the next version of fsuipc.
  12. Autopilot offsets are working properly. You can write and read the values 1 and 2. Unfortunately the autopilot itself does not work properly, it seems to me that these offsets are responsible for the "dots" on the autopilot display and something else. If the plane climbs to the set altitude and we lower the autopilot altitude and write AUTOPILOT ALTITUDE SLOT INDEX value 2, the plane will not start descending. But if you press the cockpit switch that write the value 2 for AUTOPILOT ALTITUDE SLOT INDEX, the plane begins to descend. The button in the cockpit has to execute some other event. 0x029D 1 Byte APU SWITCH - works value 0,1 I have no idea, now I'm trying to start the autopilot via VB Dominik.
  13. 0290 - works well, result 1 or 2 0294 - works but you need / 65536 to get a result 1 or 2 0298 - works after pressing the button APU Start - result 1, APU off - result 0 It would be great if you could write these offsets, not only read. How would you find the SPEED_SLOT_INDEX_SET offset, it would be great x2 Dominik.
  14. These are the autopilot values, not the autopilot mode - managed or selected
×
×
  • 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.