Jump to content
The simFlight Network Forums

Landing Rate


Erikk

Recommended Posts

Okay second topic, my first one goes crazy?

 

But back to work.

 

I am trying to make a simple program to see your landing rate. I am working in VB.net. I have now the following code:

 

 

Dim vertspeed As Offset(Of Integer) = New Offset(Of Integer)(&H2C8)

Dim landing As Offset(Of Short) = New Offset(Of Short)(&H366)

 

And
 

Dim vspeed As Double = vertspeed.Value * 60 * 3.28084 / 256
Dim land01 As Double = landing.Value
 
And
 

 

Me.txtvspeed.Text = vspeed.ToString()

                Me.txtlanding.Text = land01.ToString()
 
 
                If landing.Value = 1 Then
 
                    txtlandinrate.Text = vertspeed.Value * 60 * 3.28084 / 256

 

Okay, how it now works:

 

When you are on the ground so landing.value is 1. I can see the vs from that moment in a textbox. But de VS changes a lot and the 1 means you are on the ground, not at touchdown. So what is the best way to make this?

 

Erik

 

Link to comment
Share on other sites

When you are on the ground so landing.value is 1. I can see the vs from that moment in a textbox. But de VS changes a lot and the 1 means you are on the ground, not at touchdown. So what is the best way to make this?

 

Why not use the offset provided for this by FSUIPC? It does the same as you, but it can be more accurate catching the touch-down point and then fixing the value. Offset 030C. Just read it when on the ground.

 

Pete

Link to comment
Share on other sites

Oh, Yes but I didn't saw that offset in de ofsett list. The only one that I found was this http://www.fsxcockpit.com/files/FSUIPCOffsets.pdf.

 

I don't know who made that or why. It is way out of date and incomplete. You should be referring to the Offsets lists automatically installed for you in the FSUIPC Documents folder (and also in the FSUIPC SDK). That folder is in the FS Modules folder and also contains all the FSUIPC Documentation (which I assume you've never looked at either?).

 

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.