_albatros_
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by _albatros_
-
-
Quote
In what way?
I mean it didn't work.
15 minutes ago, Pete Dowson said:The currently supported version of FSUIPC is 5.15 or later,
Okey, I'm updating immediately 🙂
15 minutes ago, Pete Dowson said:LVars are totally unrelated. Why confusing?
I thought that if I reach that offsets, that shows it's accessible for other code lines which are written for same purpose.
-
Quote
Are any of the offsets fulfilled? Did you enable them in the PMDG SDK as described at the beginning of the offsets document( the "PLEASE READ THIS FIRST" section)?
I missed it. Now, it's done. I checked whether my code works, it doesn't make any sense 😞
QuoteBTW there are also parameters in the FSUIPC INI file to switch the action on and off, but they default to "Auto". Check for "PMDG737offsets". you can set it to "Yes", "Auto" or "No". The Auto mode depends on detecting the PMDG aircraft by its original name.
I couldn't see anything related 'PMDG'. Can you check my file?
The thing makes me confused is that: I can use readLvar to check the LED's on the MCP. It works well. For example:
if ipc.readLvar("L:ngx_MCP_CMDA") == 1 thenipc.display("1")print("MCP_CMDA_ON")elseipc.display("0")print("MCP_CMDA_OFF")end -
Pete, I tried a few minutes ago. Result is the same. It always returning 0 😕function fo_pitot_led(offset, value)print(value)if value == 1 thenprint("state 1")elseprint("state 0")endendevent.offset(25778, "UB", "fo_pitot_led")
-
Thanks a lot for replying quickly.
I've already found the list. And, I tried to use ICE_annunFO_PITOT which has 64B2 offset in following code lines seperately:
n = ipc.readUB(64B2)print(n)and
n = ipc.readUB('64B2')print(n)and
function fo_pitot_led(offset, value)print(value)if value == 0 thenprint("state 0")elseprint("state 1")endendevent.offset(64B2, "UB", "fo_pitot_led")When I switch the Probe heat, the LED in P3D is on, and the script still returning 0. What's the point I'm missing ?
-
Hi,
I searched the forum before I post and I saw that someone tried to communicate the Lua script and Arduino. We're sharing the same purposes.
Let me say the problem I deal: For PMDG 737, I can control any button, switch in the simulation by sending data from Arduino to Lua script. Also, I have no problem to send data from Lua script to Arduino by using Lvar list in FSUIPC documents.
However, I can't read the state of any warning light as Overheat Lights in the overhead panel.
Only need to know, what should be the way of reading the state of lights in PMDG 737.
If there is a small example or showing a way to go, I will be grateful 🙂
Reading the state of lights in PMDG 737
in FSUIPC Support Pete Dowson Modules
Posted
I saw your code in examples 🙂
Lvars worked well. I think Lvars makes code so clear. After all, I still want to use offset and ipc.readXX commands.
Now, programs are upgrading to the new versions. If it works, nothing would be better than 🙂
By the way, thank you so much Pete