Morning to all,
i'm tring to write al little routine who helps me to understand if an airplane is on the ground or not.
I'm using FSX and i've choose the 0X0366 offset. This offset could really help me but,after fsx's and routine's lunch, the value remains always to 0 (airplane airborned) while the aircraft in on the ground.
Can someone help me to understadn why the value is always 0 with no chages?
Thanks in advance
Emanuele
Public Class Form1
Dim airspeed As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H2BC)
Dim onground As Offset(Of Short) = New FSUIPC.Offset(Of Short)(&H336)
Friend Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
FSUIPCConnection.Open()
Catch ex As Exception
MessageBox.Show(ex.Message, "errore connessione", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Timer1.Enabled = True
End Sub
Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
FSUIPCConnection.Process()
Me.Label1.Text = airspeed.Value / 128D
Me.Label2.Text = onground.Value
End Sub
End Class