polmer Posted November 11, 2006 Report Posted November 11, 2006 Pete, this may be a question for my I/O card supplier ( I have posted with no respoce yet) but here it goes..... I am trying to program a simple switch for FS9.' Specifically,I am working on getting the Autopilot AT arm switch to work. The switch is either off or on,it does not have 2 "on" positions. with this in mine,when using offset $0810 can get the AT function to work, but I have to cycle it on and off to trigger it . Is it possible (thru FSUIPC) to have the fs9 recognize the switch as; No signal, default to "Off" signal, turn AT "ON" Or do I have to make another trip to the electronics store and buy a 2pole switch? Thanks, Polmer
Pete Dowson Posted November 11, 2006 Report Posted November 11, 2006 Specifically,I am working on getting the Autopilot AT arm switch to work. The switch is either off or on,it does not have 2 "on" positions. with this in mine,when using offset $0810 can get the AT function to work, but I have to cycle it on and off to trigger it . What has the FSUIPC offset 0810 to do with it? Are you writing a program to interface to FSUIPC? If so, just write 1 to 0810 to ARM, write 0 to disarm. Your program will have to detect the switch going off to on, and on to off, and take the appropriate action. Is it possible (thru FSUIPC) to have the fs9 recognize the switch as;No signal, default to "Off" signal, turn AT "ON" "Signal". Sorry, that is not an appropriate term to understand in this context. What is a "signal" to a piece of software? If the switch is recognised, through the Windows joystick interface, as a "button", then you can program it in FSUIPC's Buttons facilities. If you look you will see the you can program the "Press" separately from the "Release" of a button. Did you look? A toggle switch, such as the one you describe, is effectively "pressed" when you switch it from off-to-on. Program that to set Autothrottle Arm. When you switch it from "On" to "Off" that is like releasing the button. Program that for Autothrottle disarm. Now, as it happens, FS only provides a TOGGLE control for Autothrottle, so effectively you have to program both press and release to use the SAME FS control, "Autothrottle Arm". Then then the only thing to be sure of is to synchronize the switch with the state of the A/T Arm switch in FS. Once you''ve done that it should stay in sync. The alternative is to use the FSUIPC added control "Offset Dword Set". Assign that with offset x0810 with a parameter of 1 on press and 0 on release. Or do I have to make another trip to the electronics store and buy a 2pole switch? No, of course not. You are only changing one condition. FSUIPC recognises off-to-on as Press and on-to-off as Release! Didn't you notice the facilities for both settings in the options? They are actually documented too! 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