ricoalc Posted September 15, 2007 Report Posted September 15, 2007 Hello Pete I'm a registered user of fsuipc 3.75, and i made a switches module using a gamepad circuit, only extending the buttons to a normal switches with 2 circuits, one for press on/off, and another for 5v led on/off. Well, the "invent" works good, but in the fs and fsuipc simulator actions options, some options are only in toggle mode, another mode for assign p.ex. taxi light on, and taxi light off separately? Another question, in the options with on and off mode selectable, im assing key press (switch on) to landing lights on, works fine, but when assign to key press off (switch off) a landing light off option, this not work, the lights maintains turn on. Last question, some fsuipc option for start a plane ever with all switches off? in planes without cold and dark start.? Thanks for you time pete.! Mariano Rico
Pete Dowson Posted September 16, 2007 Report Posted September 16, 2007 Well, the "invent" works good, but in the fs and fsuipc simulator actions options, some options are only in toggle mode, another mode for assign p.ex. taxi light on, and taxi light off separately? Not terribly easily. Microsoft evidently didn't think these things important enough. But it can be done. You'd have to use the Offset Word Setbits or Offset Word Clrbits controls, with offset x0D0C and one of these parameters: 1 Navigation 2 Beacon 4 Landing 8 Taxi 16 Strobes 32 Instruments 64 Recognition 128 Wing 256 Logo 512 Cabin Use Setbits to turn a light on, Clrbits to turn it off. Another question, in the options with on and off mode selectable, im assing key press (switch on) to landing lights on, works fine, but when assign to key press off (switch off) a landing light off option, this not work, the lights maintains turn on. Well, the FS controls for this certainly work okay. Maybe you have the keypress repeating. Why don't you assign to a Control instead of a Keypress? It is most inefficient in any case to press a button to press a key to make FS send itself a control. By pass the keypress stuff and use controls directly. Last question, some fsuipc option for start a plane ever with all switches off? in planes without cold and dark start.? No, no need. Just set your plane up exactly as you want, then save a flight marking it as the default. Regards Pete
ricoalc Posted September 16, 2007 Author Report Posted September 16, 2007 Thank you pete! now works fine, with your instructions.!! I'm reading offsets controls list, and i will assign offset control to landing gear, pitot heat, and nav/gps switch, in the case of gear the offset is x0BE8, i'm configure offset word setbit with parameter 1, and offset word clrbit with parameter 1, and not work, it's wrong this entry?, try too with 0 and 16383 and the same result. Regards. Mariano Rico P.D.: attach some photos of the switches box, simply but useful
Pete Dowson Posted September 16, 2007 Report Posted September 16, 2007 in the case of gear the offset is x0BE8, i'm configure offset word setbit with parameter 1, and offset word clrbit with parameter 1, and not work, it's wrong this entry?, try too with 0 and 16383 and the same result. Only offsets with multiple values in separate bits should be operated by "Setbits" and "Clrbits". For all the others you should use "Offset XXXX Set", where XXX is Byte, Word or Dword, depending on the size (1, 2, or 4 bytes). In the case of Gear you'd need "Offset Dword Set" with a parameter 0 for Up and 16383 for down. But in many cases, such as Gear, you are making it more complicated than it need be. Only resort to driving the offsets when there's no suitable FS control. Really the offsets are for application program use. Regards Pete
ricoalc Posted September 16, 2007 Author Report Posted September 16, 2007 Thanks another time, all problems solved! Regards. Mariano Rico
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