Jump to content
The simFlight Network Forums

Help needed with spoilers implementation


Recommended Posts

I'm a little unclear as to the interaction between the spoilers arm offset (0BBC) and the spoilers control offset (0BD0).

Specifically I'm trying to figure out how wire the physical lever and then code to mimic the functionality of the B737-700 spoiler control. The first detent corresponds to no spoiler extension and an unarmed state. The next detente is armed but not extended. Then follows a variable range of extension up to the next detent which is max inflight extension. Finally there is a detent for maximum ground extension (though probably identical to the previous detent in FS2K2 since there do not appear to be separate air and ground spoilers in FS).

I'm trying to find a tidy way to do all this with a single 100k slide pot. I could wire a contact switch to the armed detent position that could set the armed flag but would prefer to do this in the software.

Is there an offset to read the spoiler pot value post calibration but before being sent to FS2K2 similar to how the throttle axes can be manipulated? I suppose I could intercept the windows values in my program and write those to 0BD0 after resetting the range so that I could use an arbitrary low range of values to signify an armed condition (and set the flag) and then the rest of the range as flight extension settings.

Am I missing something easy here?

Thanks,

Scott

Link to comment
Share on other sites

I'm trying to find a tidy way to do all this with a single 100k slide pot. I could wire a contact switch to the armed detent position that could set the armed flag but would prefer to do this in the software.

Well I answered my own question by monkeying around with FSInterrogate and my control :oops:

Looks like the actual spoiler positions (as reported in 0BD4 and 0BD8) do not change until the spoiler axis (0BD0) exceeds 4800. So I simply picked an arbitrary range (3300-4800) in the spoiler axis that triggers a function to arm the spoilers if the spoiler control falls within that range. Below it or above it I clear the armed flag (0BCC).

Tested and functional - no need for a separate switch - works just fine as is.

Scott

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.