Wydawnictwo Mfiles Pl Posted July 12, 2014 Report Posted July 12, 2014 Hello! I try to implement Eric Marciano's FSUIPC Exporter. It mostly works, however I have problem with landing lights switch. I use 2-position switch (on/off). I programmed it this way: 1=P2,1,Cx010056A9,x02 ; turn on lights - set value to 2 2=U2,1,Cx010056A9,x00 ; turn off lights - set value to 1 The first one works, the second doesn't. How to set value to 0? Am I doing something wrong? Next, identical switch works with other offset. Here I use toggle function: 3=P2,1,Cx0D0056A7,x01 ; switch taxi lights 4=U2,1,Cx0D0056A7,x01 ; switch taxi lights Regards, Slawek
Pete Dowson Posted July 12, 2014 Report Posted July 12, 2014 I try to implement Eric Marciano's FSUIPC Exporter. It mostly works, however I have problem with landing lights switch. I use 2-position switch (on/off). I programmed it this way: 1=P2,1,Cx010056A9,x02 ; turn on lights - set value to 2 2=U2,1,Cx010056A9,x00 ; turn off lights - set value to 1 The first one works, the second doesn't. How to set value to 0? Am I doing something wrong? I don't know Eric's "FSXExporter", and I don't know what offset 56A9 does. it isn't one implemented in FSUIPC, so it must be specific to your aircraft or add-on. The FSUIPC control you are using is the "Offset byte set" control (which can be assigned easily in the Buttons & Switches tab, so I don't know why you are editing the INI file?). Anyway, certainly that setting for button release will set that byte offset to 0, so I think you need to find out what that offset 56A9 does. If it is bit-oriented (and it looks that way with value 2 for landing lights) then you should be using Offset byte setbits and Offset byte Clearbits instead of the straight Byte set, else you are changing all 8 bits not just the one. The FS and FSUIPC supported offset for lights is the Unsigned word 0D0C. Pete
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now