Ygor Montenegro Araújo Posted April 8 Report Share Posted April 8 Actually i can change it, but the LVar gets reset very quickly: #!/usr/bin/env lua ipc.writeLvar("L:EmbBatt2", '1') value = ipc.readLvar("L:EmbBatt2") ipc.display(value) ipc.sleep(5000) I ran this code using a keypress, and instead of remaining on position 1, it rollsback to position 0. Gif may have cutted some frames.. Quote Link to comment Share on other sites More sharing options...
John Dowson Posted April 8 Report Share Posted April 8 3 hours ago, Ygor Montenegro Araújo said: i can change it, but the LVar gets reset very quickly: Then that is the way the lvar works. What switch/function for what aircraft are you trying to assign? Have you checked the MF HubHop resource to see if there is a preset available? Quote Link to comment Share on other sites More sharing options...
Ygor Montenegro Araújo Posted April 9 Author Report Share Posted April 9 (edited) On 4/8/2022 at 6:03 AM, John Dowson said: Then that is the way the lvar works. What switch/function for what aircraft are you trying to assign? Have you checked the MF HubHop resource to see if there is a preset available? I'm using the Feelthere's E190 for P3D V5. Trying to switch the position of BATT 2 from OFF to AUTO but it seems that something is forcing the switch back to OFF. Never used MF HubHop. Edited April 9 by Ygor Montenegro Araújo Quote Link to comment Share on other sites More sharing options...
John Dowson Posted April 10 Report Share Posted April 10 15 hours ago, Ygor Montenegro Araújo said: Never used MF HubHop. No, sorry - that resource is for MSFS2020, and not relevant to P3D aircraft. Try activating logging and flip the switch to Auto in the UI to see if any controls/event are logged. Maybe you need to use an event in conjunction with setting the lvar value. And check what the lvar value is when the switch is in the auto position. Other than that I can't really advise as I don't have this add-on. John Quote Link to comment Share on other sites More sharing options...
Ygor Montenegro Araújo Posted April 10 Author Report Share Posted April 10 7 hours ago, John Dowson said: No, sorry - that resource is for MSFS2020, and not relevant to P3D aircraft. Try activating logging and flip the switch to Auto in the UI to see if any controls/event are logged. Maybe you need to use an event in conjunction with setting the lvar value. And check what the lvar value is when the switch is in the auto position. Other than that I can't really advise as I don't have this add-on. John I've found a var named "EmbBatt2" with "Click" in the end. If I set to "-1" it reduces the position, and if I set it to "1" it increases the position. I will have to set a routine via lua in order to the LVar correspond to the switch position, not the ideal, but is a beggining. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.