guenseli Posted July 15, 2009 Report Posted July 15, 2009 Hello Mr. Dowson, I try to programm a switch panel. Seems very simple, but somewhere I have made a mistake: Switch up is FD ON Switch down is FD OFF. For the Up Position I have entered Offset Word Setbits 2EE0 with Parameter 0001 This is working... For the down position I have entered Offset Word Clrbits 2EE0 with Parameter 0000 But this doesn't work...? Whats wrong here? Thank you very much!!! Edit: Is there a possibility in the same way for the Autopilot? I just can find a master switch as toggle. But is there a function for Ap on and Ap off?
Pete Dowson Posted July 15, 2009 Report Posted July 15, 2009 For the Up Position I have entered Offset Word Setbits 2EE0 with Parameter 0001 This is working... For the down position I have entered Offset Word Clrbits 2EE0 with Parameter 0000 That doesn't work because you told FSUIPC to "clear no bits": there are no bits in 0000 -- they are all zero! You presumably want to clear the same bits as you set, so the parameter should be 1, just as for the "ON" action. Anyway, you are really using the wrong controls entirely. The "SetBits" and "Clearbits" facilities are for operating on individual bits in an offset, like those lights in offset 0D0C. You just want the plain "Offset Word Set" control, with value 1 for on and 0 for off. That control simply writes the parameter to the offset. You know there's a regular FS control for the FD too? It is called "TOGGLE_FLIGHT_DIRECTOR". Of course it is a toggle, so suits a button rather than a switch. Is there a possibility in the same way for the Autopilot?I just can find a master switch as toggle. But is there a function for Ap on and Ap off? No, not separately. But you can use "Offset Dword Set" with offset 07BC, and parameter 1 for on, 0 for off. Regards Pete
guenseli Posted July 15, 2009 Author Report Posted July 15, 2009 As allways: Many, many thanks!!! Both explanation of you work as I wanted it to do. Perfect!
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