Hi everyone! first of all to thank the forum for so much information and help and I must say that my English is not very good because I am Argentine.
I'm building an autopilot for FSX, with a LCD display and buttons on it, I use the buttons to select each item (ALT, HDG, NAV, etc) and the display shows me information such as altitude, heading, vertical speed, among others.
The problem, until now the only one, is that I can not read the vertical velocity when it has a negative value when the plane is dropping, for example read the value 300 ft / min and reads it perfect (I'm working in Visual Studio 2010) but in trying to read a value as being down to 200 ft / min variable becomes "Vs = 64836" with more than worth -200 or -1200, the value is always "64836", know I'm doing wrong? with respect to other data (ALT, HDG, etc) I have no problem.
I send the code to see him:
Public AP_VS As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H7F2)
Public AP_VS_ant As Integer
FSUIPCConnection.Process()
HDG = ((GRADOS_HDG.Value * 360) / 65536)
ALT = ((ALTITUD.Value * 3.28084) / 65536)
AP_VS_ant = AP_VS.Value
Thank you very much and I hope you can help me!