gunterat
Members-
Content Count
22 -
Donations
$0.00 -
Joined
-
Last visited
Community Reputation
2 NeutralFlight Sim Profile
-
Commercial Member
No
-
Online Flight Organization Membership
Other
-
Virtual Airlines
No
Recent Profile Visitors
538 profile views
-
unsyncronous data
gunterat replied to gunterat's topic in Little Navmap | Little Navconnect | Little Logbook Support Forum
I can confirm that Gruß Günter -
unsyncronous data
gunterat replied to gunterat's topic in Little Navmap | Little Navconnect | Little Logbook Support Forum
Fine, thank you very much Günter -
Hi Al, thank you for the detailed instructions. I hope you are patiently 🙂 Please be so kind and look at my example-code, based on your instructions! ----------------------------- function apu_master_light () apu_master_light = ipc.readLvar("L:AB_OVH_APU_MASTER_LIGHT_ON") ipc.writeUB(0x66C0, apu_master_light) return function bat_2_off () bat_2_off = ipc.readLvar("L:AB_OVH_ELEC_BAT2_LIGHT_OFF") ipc.writeUB(0x66C1, bat_2_off) return function gen_1_off () bat_2_off = ipc.readLvar("L:AB_OVH_ELEC_GEN1_LIGHT_OFF") ipc.writeUB(0x66C2, gen_1_off) return event.Lvar("L:AB_OVH_APU_MASTER_LIGHT_ON",100, "apu_master_light") event.Lvar("L:AB_OVH_ELEC_BAT2_LIGHT_OFF",100, "bat_2_off") event.Lvar("L:AB_OVH_ELEC_GEN1_LIGHT_OFF",100, "gen_1_off") end ______________________________________________ Best regards Guenter
-
No, the button clicks, rotary switches ..... are absolutly independent of reading out the LED-State. These "Inputs" I have already realized with a macro-file and fsuipc (Mobiflight) control. In the last years I used "Wilco" and "Jeehell". Both have separate Offsets for Inputs and Outputs independently from each other - I think that this concept is very important. Otherwise its very difficult to keep the Hard- and Software simultaneously. I built a script as you suggested in your last post and it runs very well or in other words: it seems to be the solution that I looked for. Thank you very much! Al, may I ask for an example "code line" and what is meant with "Main Program"? Thank you!!
-
Yes, I am using hardware switches, but unfortunately, the LED-State and Changes are very often not simultaneously with switch manipulating. And some are fully independent! So my plan is to build a script with a lot of functions in one (as Al described above) and set it to autorun. Hope it will work, thank you very much for your assistance! Guenter
-
I will try: it is about the Flightsim "Prepar3D_V4 - 64 Bit" , "Aerosoft Airbus Pro" and the freewaretool "Mobiflight" as link between hard- and software. The Aerosoft Airbus is working with LVars, but Mobiflight works only with offsets (at least for outputs - Led's in my particular case). My hardware, e.g. pushbuttons, is connected via "Arduino 2560 Boards", controlled by "Mobiflight". Now I have to read out the state of the LVar and write this into an offset ("0" or "1"). "Mobiflight" is monitoring the state of the offsets permanently and switches the Leds "on" and "off" as soon as the State in the Offset changes from "1" to "0" or conversely. So I think I need a script that is: 1. monitoring the state of the Lvar (resp. recognizing changes) 2 and writing to the Offset as soon the state changes and both permanently ! Once more, the code above works, but it misses the "monitoring function". Sorry for my simple description, I hope it is understandable. Best regards Guenter
-
Problem: the state of the LVAr is written to the Offset only once, namely with starting. At this time the (Hardware) LED's are "on" or "off" according to the state in the "Aircraft". But it does not update, the Offset shows always the same state (1 - if the state was 1 at beginning). As soon as the Illumination of the pushbutton goes "off", the state in the Offset would have to go to "0". But it does' nt. (and conversely too)