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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.