Erikk Posted November 13, 2013 Report Posted November 13, 2013 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
Pete Dowson Posted November 14, 2013 Report Posted November 14, 2013 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
Erikk Posted November 14, 2013 Author Report Posted November 14, 2013 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.
Pete Dowson Posted November 14, 2013 Report Posted November 14, 2013 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
Erikk Posted November 14, 2013 Author Report Posted November 14, 2013 oww thank you! I don't took a look in the modules map, but thanks anyway!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now