Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Private Sub Form1_Load1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Protected Overrides Sub DefWndProc(ByRef m As Message) Imports Ĭonst WM_USER_SIMCONNECT As Integer = &H402 I added the below structure to the existing record structureįsx_simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "PLANE PITCH DEGREES", "degrees", SIMCONNECT_DATATYPE.FLOAT32, 0, 9) '' test dwhįsx_simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "PLANE BANK DEGREES", "degrees", SIMCONNECT_DATATYPE.FLOAT32, 0, 10) '' test dwhįsx_simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "PLANE HEADING DEGREES TRUE", "degrees", SIMCONNECT_DATATYPE.FLOAT32, 0, 11) '' test dwh The original variables that came withįor example Altitude reads 06150 in feet, which makes much more sense than those big numbers I'm getting for pitch and bank.
Just cant work out what else I need to do to get the correct data out for these 3 variables I added to this program.
These above values are not making any sense and not what they should be for the values sought.
The values I'm getting retured for variables pitch, bank and heading are as follows It's almost like it's returning pointers to data rather than thea actual data itself.
#SIMCONNECT FSX CODE#
I downloaded Jims VB.NET code and modified it to add these 3 variables, however I cant make sense of the data I get and it does not seem to refresh. Hi, I'm new to SimConnect and have problems trying to get PITCH, BANK and HEADING data from FSX.