Jump to content
The simFlight Network Forums

Flaps Position


Recommended Posts

Hi,

I want to see in a Text Box the flaps position (0, 2, 5...). I call the offset like this:


Dim Flaps As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H3BF8)
[/CODE]

And I write it in a text box like this:

[CODE]
Dim FlapsPosition As Double = Flaps.Value
Me.FlightLogBox.Text = FlapsPosition.ToString("F1")
[/CODE]

But the value is incorrect.

Link to comment
Share on other sites

Offset 3BF8 only tells you how many positions are allowed for the flaps (e.g. a Cessna may have 3, a 737 will have 9).

To get the current angles in degrees, it looks like you need offsets 30F0 onwards, depending on which particular flaps you want. I think in most cases you'll just need the left inboard trailing edge flaps (30F0 and 30F4) but check the others with a few different planes to see what you get back.

All these offsets are 2 bytes, unsigned (so UShort in VB.NET) and scaled by 256. Here's an example for the left inboard trailing edge flap:

Dim Flaps As Offset(Of UShort) = New FSUIPC.Offset(Of UShort)(&H30F0)

Dim FlapsPosition As Double = Flaps.Value / 256
Me.FlightLogBox.Text = FlapsPosition.ToString("F1")

Paul

Link to comment
Share on other sites

I want to see in a Text Box the flaps position (0, 2, 5...). I call the offset like this:

In FSX/P3D only, then, as Paul says -- offset 3BF8 is the number of positions available, NOT the current position. For the flaps angle, do as Paul says, but for the flaps handle position (0,1,2,3 ...) you need the one byte offset 0BFC. This is also only valid for FSX/P3D.

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.