Jump to content
The simFlight Network Forums

Flight Director Offsets?


Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.